Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
chore: add basic index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdurdin authored Jun 7, 2023
1 parent 49d129c commit 7a188a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// index.d.ts
declare module 'restructure';

This comment has been minimized.

Copy link
@mcdurdin

mcdurdin Jun 7, 2023

Author Member

We should write the full .d.ts at some point!

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a188a1

Please sign in to comment.