From 7a188a1e26f8f36a175d95b67ffece8702363dfc Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Thu, 8 Jun 2023 08:29:51 +1000 Subject: [PATCH] chore: add basic index.d.ts --- index.d.ts | 2 ++ package.json | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 index.d.ts 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