We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 02b76c4 + 1560154 commit 5798ff9Copy full SHA for 5798ff9
package.json
@@ -3,7 +3,7 @@
3
"version": "2.4.0",
4
"description": "JSON parse with prototype poisoning protection",
5
"main": "index.js",
6
- "types": "index.d.ts",
+ "types": "types/index.d.ts",
7
"scripts": {
8
"benchmark": "cd benchmarks && npm install && npm run all",
9
"lint": "standard",
index.d.ts renamed to types/index.d.ts
index.test-d.ts renamed to types/index.test-d.ts
@@ -1,5 +1,5 @@
1
import { expectType, expectError } from 'tsd'
2
-import sjson = require('.')
+import sjson from '..'
expectError(sjson.parse(null))
expectType<any>(sjson.parse('{"anything":0}'))
0 commit comments