Skip to content

Commit 1896bac

Browse files
committed
add failing test
1 parent 57a9631 commit 1896bac

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function handler() {
2+
return 3;
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import * as foo from './foo';
2+
3+
export type Foo = (typeof foo)['handler'];
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
declare module 'import-all-typeof' {
2+
export type Foo = (typeof foo)['handler'];
3+
// definition of foo should be here
4+
5+
export {};
6+
}
7+
8+
//# sourceMappingURL=index.d.ts.map
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": 3,
3+
"file": "index.d.ts",
4+
"names": [
5+
"Foo"
6+
],
7+
"sources": [
8+
"../input/index.ts"
9+
],
10+
"sourcesContent": [
11+
null
12+
],
13+
"mappings": ";aAEYA,GAAGA"
14+
}

0 commit comments

Comments
 (0)