TypeScript/tests/cases/compiler/functionReturnTypeQuery.ts
2018-03-27 17:37:19 +08:00

4 lines
166 B
TypeScript

declare let foo: number;
declare function test1(foo: string, bar: typeof foo): typeof foo;
declare function test2({foo}: {foo: string}, bar: typeof foo): typeof foo;