File tree Expand file tree Collapse file tree 4 files changed +22
-2
lines changed
Expand file tree Collapse file tree 4 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1+ declare function isWeakRef < T extends object > ( value : unknown ) : value is WeakRef < T > ;
2+
3+ export = isWeakRef ;
Original file line number Diff line number Diff line change @@ -4,8 +4,9 @@ var callBound = require('call-bound');
44
55var $deref = callBound ( 'WeakRef.prototype.deref' , true ) ;
66
7+ /** @type {import('.') } */
78module . exports = typeof WeakRef === 'undefined'
8- ? function isWeakRef ( value ) { // eslint-disable-line no-unused-vars
9+ ? function isWeakRef ( _value ) { // eslint-disable-line no-unused-vars
910 return false ;
1011 }
1112 : function isWeakRef ( value ) {
Original file line number Diff line number Diff line change 1515 "prepublishOnly" : " safe-publish-latest" ,
1616 "prepublish" : " not-in-publish || npm run prepublishOnly" ,
1717 "lint" : " eslint --ext=js,mjs ." ,
18+ "postlint" : " tsc && attw -P" ,
1819 "pretest" : " npm run lint" ,
1920 "tests-only" : " nyc tape 'test/**/*.js'" ,
2021 "test" : " npm run tests-only" ,
4142 },
4243 "homepage" : " https://github.com/inspect-js/is-weakref#readme" ,
4344 "devDependencies" : {
45+ "@arethetypeswrong/cli" : " ^0.17.1" ,
4446 "@ljharb/eslint-config" : " ^21.1.1" ,
47+ "@ljharb/tsconfig" : " ^0.2.2" ,
48+ "@types/for-each" : " ^0.3.3" ,
49+ "@types/object-inspect" : " ^1.13.0" ,
50+ "@types/tape" : " ^5.6.5" ,
4551 "auto-changelog" : " ^2.5.0" ,
4652 "encoding" : " ^0.1.13" ,
4753 "eslint" : " =8.8.0" ,
5157 "nyc" : " ^10.3.2" ,
5258 "object-inspect" : " ^1.13.3" ,
5359 "safe-publish-latest" : " ^2.0.0" ,
54- "tape" : " ^5.9.0"
60+ "tape" : " ^5.9.0" ,
61+ "typescript" : " next"
5562 },
5663 "dependencies" : {
5764 "call-bound" : " ^1.0.2"
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