Skip to content

Commit

Permalink
fix package import type
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew44-mappable committed Mar 6, 2024
1 parent 0cbf7e6 commit c50fb1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion template/example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"strict": false,
"rootDir": "",
"rootDirs": ["./", "../"],
"types": ["./types.d.ts"]
},
Expand Down
6 changes: 6 additions & 0 deletions template/example/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ declare global {
}
}

declare module '@mappable-world/mappable-types/import' {
interface Import {
(pkg: '%PACKAGE_NAME%'): Promise<typeof import('../src/index')>;
}
}

export {};

0 comments on commit c50fb1d

Please sign in to comment.