Skip to content

Commit

Permalink
Fix import types
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew44-mappable committed Aug 27, 2024
1 parent 7e3ddff commit f4cc808
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template/example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"strict": false,
"rootDirs": ["./", "../"],
"types": ["./types.d.ts", "../types/index.d.ts"]
"types": ["./types.d.ts"]
},
"include": ["./**/*.ts", "./**/*.tsx"]
}
1 change: 1 addition & 0 deletions template/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './MMapButtonExample/MMapButtonExample';
export * from './types';
2 changes: 1 addition & 1 deletion template/types/index.d.ts → template/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
declare module '@mappable-world/mappable-types/import' {
interface Import {
(pkg: '%PACKAGE_NAME%'): Promise<typeof import('../src/index')>;
(pkg: '%PACKAGE_NAME%'): Promise<typeof import('./index')>;
}
}

Expand Down

0 comments on commit f4cc808

Please sign in to comment.