diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..4dfae29 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,2 @@ +// index.d.ts +declare module 'restructure'; \ No newline at end of file diff --git a/package.json b/package.json index 2da168f..d5536a0 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,13 @@ "module": "./index.js", "source": "./index.js", "exports": { - "import": "./index.js", - "require": "./dist/main.cjs" + ".": { + "import": { + "types": "./index.d.ts", + "default": "./index.js" + }, + "require": "./dist/main.cjs" + } }, "targets": { "module": false