File tree Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ declare function hasNativeBigInts ( ) : boolean ;
2
+
3
+ export = hasNativeBigInts ;
Original file line number Diff line number Diff line change 2
2
3
3
var $BigInt = typeof BigInt !== 'undefined' && BigInt ;
4
4
5
+ /** @type {import('.') } */
5
6
module . exports = function hasNativeBigInts ( ) {
6
7
return typeof $BigInt === 'function'
7
8
&& typeof BigInt === 'function'
Original file line number Diff line number Diff line change 10
10
"prepublishOnly" : " safe-publish-latest" ,
11
11
"prepublish" : " not-in-publish || npm run prepublishOnly" ,
12
12
"lint" : " eslint --ext=js,mjs ." ,
13
+ "postlint" : " tsc && attw -P" ,
13
14
"pretest" : " npm run lint" ,
14
15
"tests-only" : " nyc tape 'test/**/*.js'" ,
15
16
"test" : " npm run tests-only" ,
35
36
},
36
37
"homepage" : " https://github.com/ljharb/has-bigints#readme" ,
37
38
"devDependencies" : {
39
+ "@arethetypeswrong/cli" : " ^0.17.1" ,
38
40
"@ljharb/eslint-config" : " ^21.1.1" ,
41
+ "@ljharb/tsconfig" : " ^0.2.2" ,
42
+ "@types/tape" : " ^5.8.0" ,
39
43
"auto-changelog" : " ^2.5.0" ,
40
44
"encoding" : " ^0.1.13" ,
41
45
"eslint" : " =8.8.0" ,
42
46
"in-publish" : " ^2.0.1" ,
43
47
"npmignore" : " ^0.3.1" ,
44
48
"nyc" : " ^10.3.2" ,
45
49
"safe-publish-latest" : " ^2.0.0" ,
46
- "tape" : " ^5.9.0"
50
+ "tape" : " ^5.9.0" ,
51
+ "typescript" : " next"
47
52
},
48
53
"auto-changelog" : {
49
54
"output" : " CHANGELOG.md" ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " @ljharb/tsconfig" ,
3
+ "compilerOptions" : {
4
+ "target" : " ES2021" ,
5
+ },
6
+ "exclude" : [
7
+ " coverage"
8
+ ]
9
+ }
You can’t perform that action at this time.
0 commit comments