Skip to content

Commit

Permalink
Add a test file for index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciopoppe committed Oct 2, 2021
1 parent dcde34e commit 95c3e48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
]
},
"files": [
"/dist"
"/dist",
"index.d.ts"
],
"license": "MIT",
"types": "index.d.ts",
Expand Down
5 changes: 5 additions & 0 deletions test/index.types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// test with `npx check-dts`
import quickhull3d from '../'

const points: Array<Array<number>> = [[0, 1, 2]]
quickhull3d(points)

0 comments on commit 95c3e48

Please sign in to comment.