Skip to content

Commit 5798ff9

Browse files
authored
Merge pull request #80 from Uzlopak/move-types
move types to types folder
2 parents 02b76c4 + 1560154 commit 5798ff9

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.4.0",
44
"description": "JSON parse with prototype poisoning protection",
55
"main": "index.js",
6-
"types": "index.d.ts",
6+
"types": "types/index.d.ts",
77
"scripts": {
88
"benchmark": "cd benchmarks && npm install && npm run all",
99
"lint": "standard",
File renamed without changes.

index.test-d.ts renamed to types/index.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expectType, expectError } from 'tsd'
2-
import sjson = require('.')
2+
import sjson from '..'
33

44
expectError(sjson.parse(null))
55
expectType<any>(sjson.parse('{"anything":0}'))

0 commit comments

Comments
 (0)