File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed
Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1- export { default } from '@sindresorhus/fnv1a' ;
1+ import fnv1a = require( '@sindresorhus/fnv1a' ) ;
2+
3+ export = fnv1a ;
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ const fnv1a = require('@sindresorhus/fnv1a');
44const stringHash = string => fnv1a ( string ) ;
55
66module . exports = stringHash ;
7+ // TODO: remove this in the next major version
78module . exports . default = stringHash ;
Original file line number Diff line number Diff line change 1- import { expectType } from 'tsd-check ' ;
2- import stringHash from '.' ;
1+ import { expectType } from 'tsd' ;
2+ import stringHash = require ( '.' ) ;
33
44expectType < number > ( stringHash ( '🦄🌈' ) ) ;
Original file line number Diff line number Diff line change 1313 "node" : " >=6"
1414 },
1515 "scripts" : {
16- "test" : " xo && ava && tsd-check "
16+ "test" : " xo && ava && tsd"
1717 },
1818 "files" : [
1919 " index.js" ,
3333 " function"
3434 ],
3535 "dependencies" : {
36- "@sindresorhus/fnv1a" : " ^1.1 .0"
36+ "@sindresorhus/fnv1a" : " ^1.2 .0"
3737 },
3838 "devDependencies" : {
39- "ava" : " ^1.3 .1" ,
40- "tsd-check " : " ^0.5.0 " ,
39+ "ava" : " ^1.4 .1" ,
40+ "tsd" : " ^0.7.1 " ,
4141 "xo" : " ^0.24.0"
4242 }
4343}
You can’t perform that action at this time.
0 commit comments