Skip to content

Commit a988665

Browse files
Fix import types (#14)
1 parent 7e3ddff commit a988665

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

template/example/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"strict": false,
55
"rootDirs": ["./", "../"],
6-
"types": ["./types.d.ts", "../types/index.d.ts"]
6+
"types": ["./types.d.ts"]
77
},
88
"include": ["./**/*.ts", "./**/*.tsx"]
99
}

template/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from './MMapButtonExample/MMapButtonExample';
2+
export * from './types';

template/types/index.d.ts renamed to template/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
declare module '@mappable-world/mappable-types/import' {
22
interface Import {
3-
(pkg: '%PACKAGE_NAME%'): Promise<typeof import('../src/index')>;
3+
(pkg: '%PACKAGE_NAME%'): Promise<typeof import('./index')>;
44
}
55
}
66

0 commit comments

Comments
 (0)