typescript-documentation icon indicating copy to clipboard operation
typescript-documentation copied to clipboard

Failed parsing callback function

Open eight04 opened this issue 2 years ago • 0 comments

Input:

export function foo(fn: (...args: any[]) => any) {
  return fn(...[1, 2, 3]);
}

Result:

Error: Unsupported symbol {} with flags "Signature"
at C:/Users/eight04/dev/node-test/src/index.ts:0:24
export function foo(fn: (...args: any[]) => any) {
                        ^

eight04 avatar Feb 06 '23 22:02 eight04