diff --git a/scripts/execTypes.js b/scripts/execTypes.js index 6f9e4aefb..27aa608f4 100644 --- a/scripts/execTypes.js +++ b/scripts/execTypes.js @@ -14,10 +14,9 @@ module.exports = { shell.exec(`npx tsc -p types.tsconfig.json --rootDir packages --outFile ${outFile}`) const namespaceDeclaration = ` -import * as Interact from '@interactjs/types/index' - -export as namespace Interact -export = Interact +declare module '@interactjs/types' { + export * from '@interactjs/types/index'; +} `.trimStart() await fs.promises.writeFile(path.join(outDir, 'typings.d.ts'), namespaceDeclaration)