Skip to content

Commit 1666b38

Browse files
committed
update annotations
1 parent 6e62597 commit 1666b38

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"eslint": "^6.5.1",
2525
"eslint-config-airbnb-base": "^14.0.0",
2626
"eslint-plugin-import": "^2.20.2",
27-
"typescript": "^4.3.5"
27+
"typescript": "^4.5.5"
2828
},
2929
"dependencies": {
3030
"acorn": "^7.2.0",

src/annotation_map.js

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ module.exports = new WeakMap([
100100
[globalThis?.Array?.prototype?.some, {"call":[["predicate","?thisArg"]],"construct":[]}],
101101
[globalThis?.Array?.prototype?.reduce, {"call":[["callbackfn"],["callbackfn","initialValue"]],"construct":[]}],
102102
[globalThis?.Array?.prototype?.reduceRight, {"call":[["callbackfn"],["callbackfn","initialValue"]],"construct":[]}],
103+
[globalThis?.Array?.prototype?.at, {"call":[["index"]],"construct":[]}],
103104
[globalThis?.Array?.isArray, {"call":[["arg"]],"construct":[]}],
104105
[globalThis?.Array?.from, {"call":[["arrayLike"],["iterable"],["arrayLike","mapfn","?thisArg"],["iterable","mapfn","?thisArg"]],"construct":[]}],
105106
[globalThis?.Array?.of, {"call":[["...items"]],"construct":[]}],
@@ -146,6 +147,7 @@ module.exports = new WeakMap([
146147
[globalThis?.String?.prototype?.startsWith, {"call":[["searchString","?position"]],"construct":[]}],
147148
[globalThis?.String?.prototype?.toLocaleLowerCase, {"call":[["?locales"]],"construct":[]}],
148149
[globalThis?.String?.prototype?.toLocaleUpperCase, {"call":[["?locales"]],"construct":[]}],
150+
[globalThis?.String?.prototype?.at, {"call":[["index"]],"construct":[]}],
149151
[globalThis?.String?.fromCharCode, {"call":[["...codes"]],"construct":[]}],
150152
[globalThis?.String?.fromCodePoint, {"call":[["...codePoints"]],"construct":[]}],
151153
[globalThis?.String?.raw, {"call":[["template","...substitutions"]],"construct":[]}],
@@ -188,6 +190,7 @@ module.exports = new WeakMap([
188190
[globalThis?.Promise?.reject, {"call":[["?reason"]],"construct":[]}],
189191
[globalThis?.RegExp, {"call":[["pattern"],["pattern","?flags"]],"construct":[["pattern"],["pattern","?flags"]]}],
190192
[globalThis?.RegExp?.prototype?.exec, {"call":[["string"]],"construct":[]}],
193+
[globalThis?.RegExp?.prototype?.compile, {"call":[["pattern","?flags"]],"construct":[]}],
191194
[globalThis?.RegExp?.prototype?.test, {"call":[["string"]],"construct":[]}],
192195
[globalThis?.RegExp?.prototype?.[Symbol.match], {"call":[["string"]],"construct":[]}],
193196
[globalThis?.RegExp?.prototype?.[Symbol.matchAll], {"call":[["str"]],"construct":[]}],
@@ -283,6 +286,10 @@ module.exports = new WeakMap([
283286
[globalThis?.Intl?.PluralRules?.supportedLocalesOf, {"call":[["locales","?options"]],"construct":[]}],
284287
[globalThis?.Intl?.RelativeTimeFormat, {"call":[],"construct":[["?locales","?options"]]}],
285288
[globalThis?.Intl?.RelativeTimeFormat?.supportedLocalesOf, {"call":[["?locales","?options"]],"construct":[]}],
289+
[globalThis?.Intl?.Locale, {"call":[],"construct":[["?tag","?options"]]}],
290+
[globalThis?.Intl?.DisplayNames, {"call":[],"construct":[["?locales","?options"]]}],
291+
[globalThis?.Intl?.DisplayNames?.prototype?.of, {"call":[["code"]],"construct":[]}],
292+
[globalThis?.Intl?.DisplayNames?.supportedLocalesOf, {"call":[["locales","?options"]],"construct":[]}],
286293
[globalThis?.ArrayBuffer, {"call":[],"construct":[["byteLength"]]}],
287294
[globalThis?.ArrayBuffer?.prototype?.slice, {"call":[["begin","?end"]],"construct":[]}],
288295
[globalThis?.ArrayBuffer?.isView, {"call":[["arg"]],"construct":[]}],
@@ -374,6 +381,7 @@ module.exports = new WeakMap([
374381
[globalThis?.process?.cpuUsage, {"call":[["?previousValue"]],"construct":[]}],
375382
[globalThis?.process?.kill, {"call":[["pid","?signal"]],"construct":[]}],
376383
[globalThis?.process?.exit, {"call":[["?code"]],"construct":[]}],
384+
[globalThis?.process?.hrtime, {"call":[["?time"]],"construct":[]}],
377385
[globalThis?.process?.setUncaughtExceptionCaptureCallback, {"call":[["cb"]],"construct":[]}],
378386
[globalThis?.process?.emitWarning, {"call":[["warning","?ctor"],["warning","?options"],["warning","?type","?ctor"],["warning","?type","?code","?ctor"]],"construct":[]}],
379387
[globalThis?.process?.nextTick, {"call":[["callback","...args"]],"construct":[]}],
@@ -384,7 +392,6 @@ module.exports = new WeakMap([
384392
[globalThis?.process?.seteuid, {"call":[["id"]],"construct":[]}],
385393
[globalThis?.process?.setgid, {"call":[["id"]],"construct":[]}],
386394
[globalThis?.process?.setuid, {"call":[["id"]],"construct":[]}],
387-
[globalThis?.process?.hrtime, {"call":[["?time"]],"construct":[]}],
388395
[globalThis?.Buffer, {"call":[],"construct":[["size"],["array"],["arrayBuffer"],["buffer"],["str","?encoding"]]}],
389396
[globalThis?.Buffer?.from, {"call":[["data"],["str","?encoding"],["arrayBuffer","?byteOffset","?length"]],"construct":[]}],
390397
[globalThis?.Buffer?.of, {"call":[["...items"]],"construct":[]}],
@@ -399,6 +406,8 @@ module.exports = new WeakMap([
399406
[globalThis?.atob, {"call":[["data"]],"construct":[]}],
400407
[globalThis?.btoa, {"call":[["data"]],"construct":[]}],
401408
[globalThis?.URL, {"call":[],"construct":[["url","?base"]]}],
409+
[globalThis?.URL?.createObjectURL, {"call":[["obj"]],"construct":[]}],
410+
[globalThis?.URL?.revokeObjectURL, {"call":[["url"]],"construct":[]}],
402411
[globalThis?.URLSearchParams, {"call":[],"construct":[["?init"]]}],
403412
[globalThis?.URLSearchParams?.prototype?.append, {"call":[["name","value"]],"construct":[]}],
404413
[globalThis?.URLSearchParams?.prototype?.delete, {"call":[["name"]],"construct":[]}],
@@ -407,11 +416,12 @@ module.exports = new WeakMap([
407416
[globalThis?.URLSearchParams?.prototype?.has, {"call":[["name"]],"construct":[]}],
408417
[globalThis?.URLSearchParams?.prototype?.set, {"call":[["name","value"]],"construct":[]}],
409418
[globalThis?.URLSearchParams?.prototype?.forEach, {"call":[["callbackfn","?thisArg"]],"construct":[]}],
419+
[globalThis?.DOMException, {"call":[],"construct":[["?message","?name"]]}],
410420
[globalThis?.TextEncoder?.prototype?.encode, {"call":[["?input"]],"construct":[]}],
411421
[globalThis?.TextEncoder?.prototype?.encodeInto, {"call":[["source","destination"]],"construct":[]}],
412422
[globalThis?.TextDecoder, {"call":[],"construct":[["?label","?options"]]}],
413423
[globalThis?.TextDecoder?.prototype?.decode, {"call":[["?input","?options"]],"construct":[]}],
414-
[globalThis?.EventTarget?.prototype?.addEventListener, {"call":[["type","listener","?options"]],"construct":[]}],
424+
[globalThis?.EventTarget?.prototype?.addEventListener, {"call":[["type","callback","?options"]],"construct":[]}],
415425
[globalThis?.EventTarget?.prototype?.removeEventListener, {"call":[["type","callback","?options"]],"construct":[]}],
416426
[globalThis?.EventTarget?.prototype?.dispatchEvent, {"call":[["event"]],"construct":[]}],
417427
[globalThis?.Event, {"call":[],"construct":[["type","?eventInitDict"]]}],
@@ -446,13 +456,16 @@ module.exports = new WeakMap([
446456
[globalThis?.WebAssembly?.Module?.exports, {"call":[["moduleObject"]],"construct":[]}],
447457
[globalThis?.WebAssembly?.Module?.customSections, {"call":[["moduleObject","sectionName"]],"construct":[]}],
448458
[globalThis?.WebAssembly?.Instance, {"call":[],"construct":[["module","?importObject"]]}],
449-
[globalThis?.WebAssembly?.Table, {"call":[],"construct":[["descriptor"]]}],
450-
[globalThis?.WebAssembly?.Table?.prototype?.grow, {"call":[["delta"]],"construct":[]}],
459+
[globalThis?.WebAssembly?.Table, {"call":[],"construct":[["descriptor","?value"]]}],
460+
[globalThis?.WebAssembly?.Table?.prototype?.grow, {"call":[["delta","?value"]],"construct":[]}],
451461
[globalThis?.WebAssembly?.Table?.prototype?.get, {"call":[["index"]],"construct":[]}],
452-
[globalThis?.WebAssembly?.Table?.prototype?.set, {"call":[["index","value"]],"construct":[]}],
462+
[globalThis?.WebAssembly?.Table?.prototype?.set, {"call":[["index","?value"]],"construct":[]}],
453463
[globalThis?.WebAssembly?.Memory, {"call":[],"construct":[["descriptor"]]}],
454464
[globalThis?.WebAssembly?.Memory?.prototype?.grow, {"call":[["delta"]],"construct":[]}],
455465
[globalThis?.WebAssembly?.Global, {"call":[],"construct":[["descriptor","?v"]]}],
466+
[globalThis?.WebAssembly?.CompileError, {"call":[["?message"]],"construct":[["?message"]]}],
467+
[globalThis?.WebAssembly?.LinkError, {"call":[["?message"]],"construct":[["?message"]]}],
468+
[globalThis?.WebAssembly?.RuntimeError, {"call":[["?message"]],"construct":[["?message"]]}],
456469
[assert, {"call":[["value","?message"]],"construct":[]}],
457470
[assert?.fail, {"call":[["?message"],["actual","expected","?message","?operator","?stackStartFn"]],"construct":[]}],
458471
[assert?.AssertionError, {"call":[],"construct":[["?options"]]}],
@@ -483,15 +496,18 @@ module.exports = new WeakMap([
483496
[async_hooks?.AsyncResource?.bind, {"call":[["fn","?type","?thisArg"]],"construct":[]}],
484497
[buffer?.Blob, {"call":[],"construct":[["sources","?options"]]}],
485498
[buffer?.Blob?.prototype?.slice, {"call":[["?start","?end","?type"]],"construct":[]}],
499+
[buffer?.resolveObjectURL, {"call":[["id"]],"construct":[]}],
486500
[buffer?.SlowBuffer, {"call":[],"construct":[["size"]]}],
487501
[buffer?.transcode, {"call":[["source","fromEnc","toEnc"]],"construct":[]}],
502+
[child_process?.ChildProcess, {"call":[],"construct":[["?options"]]}],
503+
[child_process?.ChildProcess?.prototype?.kill, {"call":[["?signal"]],"construct":[]}],
488504
[child_process?.exec, {"call":[["command","?callback"],["command","options","?callback"]],"construct":[]}],
489505
[child_process?.execFile, {"call":[["file"],["file","options"],["file","?args"],["file","callback"],["file","args","options"],["file","args","callback"],["file","options","callback"],["file","args","options","callback"]],"construct":[]}],
490-
[child_process?.execFileSync, {"call":[["file"],["file","?options"],["file","?args","?options"]],"construct":[]}],
491-
[child_process?.execSync, {"call":[["command"],["command","?options"]],"construct":[]}],
506+
[child_process?.execFileSync, {"call":[["file"],["file","options"],["file","?options"],["file","args"],["file","args","options"],["file","?args","?options"]],"construct":[]}],
507+
[child_process?.execSync, {"call":[["command"],["command","options"],["command","?options"]],"construct":[]}],
492508
[child_process?.fork, {"call":[["modulePath","?options"],["modulePath","?args","?options"]],"construct":[]}],
493509
[child_process?.spawn, {"call":[["command","?options"],["command","options"],["command","?args","?options"],["command","args","options"]],"construct":[]}],
494-
[child_process?.spawnSync, {"call":[["command"],["command","?options"],["command","?args","?options"]],"construct":[]}],
510+
[child_process?.spawnSync, {"call":[["command"],["command","options"],["command","?options"],["command","args"],["command","args","options"],["command","?args","?options"]],"construct":[]}],
495511
[cluster?.Worker, {"call":[],"construct":[["?options"]]}],
496512
[cluster?.Worker?.prototype?.kill, {"call":[["?signal"]],"construct":[]}],
497513
[cluster?.Worker?.prototype?.send, {"call":[["message","?callback"],["message","sendHandle","?callback"],["message","sendHandle","?options","?callback"]],"construct":[]}],
@@ -513,13 +529,14 @@ module.exports = new WeakMap([
513529
[crypto?.generatePrime, {"call":[["size","callback"],["size","options","callback"]],"construct":[]}],
514530
[crypto?.generatePrimeSync, {"call":[["size"],["size","options"]],"construct":[]}],
515531
[crypto?.getCipherInfo, {"call":[["nameOrNid","?options"]],"construct":[]}],
516-
[crypto?.hkdf, {"call":[["digest","key","salt","info","keylen","callback"]],"construct":[]}],
517-
[crypto?.hkdfSync, {"call":[["digest","key","salt","info","keylen"]],"construct":[]}],
532+
[crypto?.hkdf, {"call":[["digest","irm","salt","info","keylen","callback"]],"construct":[]}],
533+
[crypto?.hkdfSync, {"call":[["digest","ikm","salt","info","keylen"]],"construct":[]}],
518534
[crypto?.pbkdf2, {"call":[["password","salt","iterations","keylen","digest","callback"]],"construct":[]}],
519535
[crypto?.pbkdf2Sync, {"call":[["password","salt","iterations","keylen","digest"]],"construct":[]}],
520536
[crypto?.generateKeyPair, {"call":[["type","options","callback"]],"construct":[]}],
521537
[crypto?.generateKeyPairSync, {"call":[["type","options"],["type","?options"]],"construct":[]}],
522538
[crypto?.generateKey, {"call":[["type","options","callback"]],"construct":[]}],
539+
[crypto?.generateKeySync, {"call":[["type","options"]],"construct":[]}],
523540
[crypto?.privateDecrypt, {"call":[["privateKey","buffer"]],"construct":[]}],
524541
[crypto?.privateEncrypt, {"call":[["privateKey","buffer"]],"construct":[]}],
525542
[crypto?.publicDecrypt, {"call":[["key","buffer"]],"construct":[]}],
@@ -552,6 +569,7 @@ module.exports = new WeakMap([
552569
[crypto?.Hash?.prototype?.update, {"call":[["data"],["data","inputEncoding"]],"construct":[]}],
553570
[crypto?.Hash?.prototype?.digest, {"call":[["encoding"]],"construct":[]}],
554571
[crypto?.Hmac?.prototype?.digest, {"call":[["encoding"]],"construct":[]}],
572+
[crypto?.KeyObject?.from, {"call":[["key"]],"construct":[]}],
555573
[crypto?.Sign?.prototype?.update, {"call":[["data"],["data","inputEncoding"]],"construct":[]}],
556574
[crypto?.Sign?.prototype?.sign, {"call":[["privateKey"],["privateKey","outputFormat"]],"construct":[]}],
557575
[crypto?.Verify?.prototype?.verify, {"call":[["object","signature"],["object","signature","?signature_format"]],"construct":[]}],
@@ -585,6 +603,7 @@ module.exports = new WeakMap([
585603
[diagnostics_channel?.hasSubscribers, {"call":[["name"]],"construct":[]}],
586604
[diagnostics_channel?.Channel, {"call":[],"construct":[["name"]]}],
587605
[diagnostics_channel?.Channel?.prototype?.subscribe, {"call":[["onMessage"]],"construct":[]}],
606+
[diagnostics_channel?.Channel?.prototype?.unsubscribe, {"call":[["onMessage"]],"construct":[]}],
588607
[diagnostics_channel?.Channel?.[Symbol.hasInstance], {"call":[["value"]],"construct":[]}],
589608
[dns?.lookup, {"call":[["hostname","callback"],["hostname","family","callback"],["hostname","options","callback"]],"construct":[]}],
590609
[dns?.lookupService, {"call":[["address","port","callback"]],"construct":[]}],
@@ -604,6 +623,7 @@ module.exports = new WeakMap([
604623
[dns?.Resolver?.prototype?.resolveSoa, {"call":[["hostname","callback"]],"construct":[]}],
605624
[dns?.Resolver?.prototype?.reverse, {"call":[["ip","callback"]],"construct":[]}],
606625
[dns?.Resolver?.prototype?.resolve, {"call":[["hostname","callback"],["hostname","rrtype","callback"]],"construct":[]}],
626+
[dns?.setDefaultResultOrder, {"call":[["order"]],"construct":[]}],
607627
[dns?.setServers, {"call":[["servers"]],"construct":[]}],
608628
[dns?.resolve, {"call":[["hostname","callback"],["hostname","rrtype","callback"]],"construct":[]}],
609629
[dns?.resolve4, {"call":[["hostname","callback"],["hostname","options","callback"]],"construct":[]}],
@@ -663,6 +683,7 @@ module.exports = new WeakMap([
663683
[events?.prototype?.listenerCount, {"call":[["eventName"]],"construct":[]}],
664684
[events?.once, {"call":[["emitter","eventName","?options"]],"construct":[]}],
665685
[events?.on, {"call":[["emitter","eventName","?options"]],"construct":[]}],
686+
[events?.getEventListeners, {"call":[["emitter","name"]],"construct":[]}],
666687
[events?.listenerCount, {"call":[["emitter","eventName"]],"construct":[]}],
667688
[fs?.appendFile, {"call":[["file","data","callback"],["path","data","options","callback"]],"construct":[]}],
668689
[fs?.appendFileSync, {"call":[["path","data","?options"]],"construct":[]}],
@@ -676,6 +697,8 @@ module.exports = new WeakMap([
676697
[fs?.closeSync, {"call":[["fd"]],"construct":[]}],
677698
[fs?.copyFile, {"call":[["src","dest","callback"],["src","dest","mode","callback"]],"construct":[]}],
678699
[fs?.copyFileSync, {"call":[["src","dest","?mode"]],"construct":[]}],
700+
[fs?.cp, {"call":[["source","destination","callback"],["source","destination","opts","callback"]],"construct":[]}],
701+
[fs?.cpSync, {"call":[["source","destination","?opts"]],"construct":[]}],
679702
[fs?.createReadStream, {"call":[["path","?options"]],"construct":[]}],
680703
[fs?.createWriteStream, {"call":[["path","?options"]],"construct":[]}],
681704
[fs?.exists, {"call":[["path","callback"]],"construct":[]}],
@@ -687,7 +710,7 @@ module.exports = new WeakMap([
687710
[fs?.fdatasync, {"call":[["fd","callback"]],"construct":[]}],
688711
[fs?.fdatasyncSync, {"call":[["fd"]],"construct":[]}],
689712
[fs?.fstat, {"call":[["fd","callback"],["fd","options","callback"]],"construct":[]}],
690-
[fs?.fstatSync, {"call":[["path","?options"],["path","options"]],"construct":[]}],
713+
[fs?.fstatSync, {"call":[["fd","?options"],["fd","options"]],"construct":[]}],
691714
[fs?.fsync, {"call":[["fd","callback"]],"construct":[]}],
692715
[fs?.fsyncSync, {"call":[["fd"]],"construct":[]}],
693716
[fs?.ftruncate, {"call":[["fd","callback"],["fd","len","callback"]],"construct":[]}],
@@ -706,27 +729,4 @@ module.exports = new WeakMap([
706729
[fs?.mkdirSync, {"call":[["path","options"],["path","?options"]],"construct":[]}],
707730
[fs?.mkdtemp, {"call":[["prefix","callback"],["prefix","options","callback"]],"construct":[]}],
708731
[fs?.mkdtempSync, {"call":[["prefix","?options"],["prefix","options"]],"construct":[]}],
709-
[fs?.open, {"call":[["path","flags","callback"],["path","flags","mode","callback"]],"construct":[]}],
710-
[fs?.openSync, {"call":[["path","flags","?mode"]],"construct":[]}],
711-
[fs?.opendir, {"call":[["path","cb"],["path","options","cb"]],"construct":[]}],
712-
[fs?.opendirSync, {"call":[["path","?options"]],"construct":[]}],
713-
[fs?.readdir, {"call":[["path","callback"],["path","options","callback"]],"construct":[]}],
714-
[fs?.readdirSync, {"call":[["path","?options"],["path","options"]],"construct":[]}],
715-
[fs?.read, {"call":[["fd","buffer","offset","length","position","callback"]],"construct":[]}],
716-
[fs?.readSync, {"call":[["fd","buffer","?opts"],["fd","buffer","offset","length","position"]],"construct":[]}],
717-
[fs?.readv, {"call":[["fd","buffers","cb"],["fd","buffers","position","cb"]],"construct":[]}],
718-
[fs?.readvSync, {"call":[["fd","buffers","?position"]],"construct":[]}],
719-
[fs?.readFile, {"call":[["path","callback"],["path","options","callback"]],"construct":[]}],
720-
[fs?.readFileSync, {"call":[["path","?options"],["path","options"]],"construct":[]}],
721-
[fs?.readlink, {"call":[["path","callback"],["path","options","callback"]],"construct":[]}],
722-
[fs?.readlinkSync, {"call":[["path","?options"],["path","options"]],"construct":[]}],
723-
[fs?.realpath, {"call":[["path","callback"],["path","options","callback"]],"construct":[]}],
724-
[fs?.realpath?.native, {"call":[["path","callback"],["path","options","callback"]],"construct":[]}],
725-
[fs?.realpathSync, {"call":[["path","?options"],["path","options"]],"construct":[]}],
726-
[fs?.realpathSync?.native, {"call":[["path","?options"],["path","options"]],"construct":[]}],
727-
[fs?.rename, {"call":[["oldPath","newPath","callback"]],"construct":[]}],
728-
[fs?.renameSync, {"call":[["oldPath","newPath"]],"construct":[]}],
729-
[fs?.rm, {"call":[["path","callback"],["path","options","callback"]],"construct":[]}],
730-
[fs?.rmSync, {"call":[["path","?options"]],"construct":[]}],
731-
[fs?.rmdir, {"call":[["path","callback"],["path","options","callback"]],"construct":[]}],
732732
].filter(([key]) => key !== undefined));

0 commit comments

Comments
 (0)