From 7bb21d28fe9bd2e52e64db57e4fe4cacd40c1d52 Mon Sep 17 00:00:00 2001 From: Matthew Kalinin Date: Tue, 27 Aug 2024 11:49:38 +0300 Subject: [PATCH] Support import() package types --- example/tsconfig.json | 3 +-- src/index.ts | 1 + types/index.d.ts => src/types.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename types/index.d.ts => src/types.ts (82%) diff --git a/example/tsconfig.json b/example/tsconfig.json index 28b0012..90b66ea 100644 --- a/example/tsconfig.json +++ b/example/tsconfig.json @@ -3,8 +3,7 @@ "compilerOptions": { "strict": false, "moduleResolution": "Node16", - "rootDirs": ["./", "../"], - "types": ["../types/index.d.ts"] + "rootDirs": ["./", "../"] }, "include": ["./**/*.ts", "./**/*.tsx"] } diff --git a/src/index.ts b/src/index.ts index b4b1dad..44cd4e2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,3 @@ export * from './controls'; export * from './markers'; +export * from './types'; diff --git a/types/index.d.ts b/src/types.ts similarity index 82% rename from types/index.d.ts rename to src/types.ts index 92bbbdc..ca53b52 100644 --- a/types/index.d.ts +++ b/src/types.ts @@ -1,6 +1,6 @@ declare module '@mappable-world/mappable-types/import' { interface Import { - (pkg: '@mappable-world/mappable-default-ui-theme'): Promise; + (pkg: '@mappable-world/mappable-default-ui-theme'): Promise; } }