diff --git a/test/samples/import-all-typeof/input/foo.ts b/test/samples/import-all-typeof/input/foo.ts new file mode 100644 index 0000000..89450a9 --- /dev/null +++ b/test/samples/import-all-typeof/input/foo.ts @@ -0,0 +1,3 @@ +export function handler() { + return 3; +} diff --git a/test/samples/import-all-typeof/input/index.ts b/test/samples/import-all-typeof/input/index.ts new file mode 100644 index 0000000..f66d027 --- /dev/null +++ b/test/samples/import-all-typeof/input/index.ts @@ -0,0 +1,3 @@ +import * as foo from './foo'; + +export type Foo = (typeof foo)['handler']; diff --git a/test/samples/import-all-typeof/output/index.d.ts b/test/samples/import-all-typeof/output/index.d.ts new file mode 100644 index 0000000..c9981a5 --- /dev/null +++ b/test/samples/import-all-typeof/output/index.d.ts @@ -0,0 +1,8 @@ +declare module 'import-all-typeof' { + export type Foo = (typeof foo)['handler']; + // definition of foo should be here + + export {}; +} + +//# sourceMappingURL=index.d.ts.map diff --git a/test/samples/import-all-typeof/output/index.d.ts.map b/test/samples/import-all-typeof/output/index.d.ts.map new file mode 100644 index 0000000..de0f7b7 --- /dev/null +++ b/test/samples/import-all-typeof/output/index.d.ts.map @@ -0,0 +1,14 @@ +{ + "version": 3, + "file": "index.d.ts", + "names": [ + "Foo" + ], + "sources": [ + "../input/index.ts" + ], + "sourcesContent": [ + null + ], + "mappings": ";aAEYA,GAAGA" +}