Skip to content

wip: failing test (import-all-typeof) #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/samples/import-all-typeof/input/foo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function handler() {
return 3;
}
3 changes: 3 additions & 0 deletions test/samples/import-all-typeof/input/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import * as foo from './foo';

export type Foo = (typeof foo)['handler'];
8 changes: 8 additions & 0 deletions test/samples/import-all-typeof/output/index.d.ts
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions test/samples/import-all-typeof/output/index.d.ts.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": 3,
"file": "index.d.ts",
"names": [
"Foo"
],
"sources": [
"../input/index.ts"
],
"sourcesContent": [
null
],
"mappings": ";aAEYA,GAAGA"
}