diff --git a/lib/core.js b/lib/core.js index 9fa57c32d06..b05a5cd515d 100644 --- a/lib/core.js +++ b/lib/core.js @@ -61,8 +61,9 @@ declare class Object { // Well known Symbols. declare class $SymbolHasInstance mixins Symbol {} -declare class $SymboIsConcatSpreadable mixins Symbol {} +declare class $SymbolIsConcatSpreadable mixins Symbol {} declare class $SymbolIterator mixins Symbol {} +declare class $SymbolAsyncIterator mixins Symbol {} declare class $SymbolMatch mixins Symbol {} declare class $SymbolReplace mixins Symbol {} declare class $SymbolSearch mixins Symbol {} @@ -76,8 +77,9 @@ declare class Symbol { static (value?:any): Symbol; static for(key: string): Symbol; static hasInstance: $SymbolHasInstance; - static isConcatSpreadable: $SymboIsConcatSpreadable; + static isConcatSpreadable: $SymbolIsConcatSpreadable; static iterator: string; // polyfill '@@iterator' + static asyncIterator: $SymbolAsyncIterator; static keyFor(sym: Symbol): ?string; static length: 0; static match: $SymbolMatch; @@ -547,20 +549,22 @@ type IteratorResult = | { done: true, value?: Return } | { done: false, value: Yield }; -interface $Iterator<+Yield,+Return,-Next> { - @@iterator(): $Iterator; - next(value?: Next): IteratorResult; -} -type Iterator<+T> = $Iterator; - interface $Iterable<+Yield,+Return,-Next> { @@iterator(): $Iterator; } type Iterable<+T> = $Iterable; -interface Generator<+Yield,+Return,-Next> { +interface $Iterator<+Yield,+Return,-Next> extends $Iterable { @@iterator(): $Iterator; next(value?: Next): IteratorResult; + +return?: (value: R) => IteratorResult; + +throw?: (error?: any) => IteratorResult; +} +type Iterator<+T> = $Iterator; + +interface Generator<+Yield,+Return,-Next> extends $Iterator { + @@iterator(): Generator; + next(value?: Next): IteratorResult; return(value: R): IteratorResult; throw(error?: any): IteratorResult; } @@ -569,25 +573,27 @@ declare function $iterate(p: Iterable): T; /* Async Iterable/Iterator/Generator */ -interface $AsyncIterator<+Yield,+Return,-Next> { - @@asyncIterator(): $AsyncIterator; - next(value?: Next): Promise>; -} -type AsyncIterator<+T> = $AsyncIterator; - interface $AsyncIterable<+Yield,+Return,-Next> { @@asyncIterator(): $AsyncIterator; } type AsyncIterable<+T> = $AsyncIterable; -interface AsyncGenerator<+Yield,+Return,-Next> { +interface $AsyncIterator<+Yield,+Return,-Next> extends $AsyncIterable { @@asyncIterator(): $AsyncIterator; next(value?: Next): Promise>; + +return?: (value: R) => Promise>; + +throw?: (error?: any) => Promise>; +} +type AsyncIterator<+T> = $AsyncIterator; + +interface AsyncGenerator<+Yield,+Return,-Next> extends $AsyncIterator { + @@asyncIterator(): AsyncGenerator; + next(value?: Next): Promise>; return(value: R): Promise>; throw(error?: any): Promise>; } -declare function $asyncIterator(p: AsyncIterable): T; +declare function $asyncIterate(p: AsyncIterable): T; /* Maps and Sets */ diff --git a/newtests/array_literal_tuple_spread/test.js b/newtests/array_literal_tuple_spread/test.js index 3f1c9310ddf..f27023a24b9 100644 --- a/newtests/array_literal_tuple_spread/test.js +++ b/newtests/array_literal_tuple_spread/test.js @@ -261,8 +261,8 @@ export default suite(({addFile, addFiles, addCode}) => [ test.js:3 3: const arr: Array = [..."hello"]; ^^^^^^ number. This type is incompatible with - 276: @@iterator(): Iterator; - ^^^^^^ string. See lib: [LIB] core.js:276 + 278: @@iterator(): Iterator; + ^^^^^^ string. See lib: [LIB] core.js:278 `, ) .because('String is an Iterable'), diff --git a/newtests/autocomplete/test.js b/newtests/autocomplete/test.js index 28afe322db4..2909a824c63 100644 --- a/newtests/autocomplete/test.js +++ b/newtests/autocomplete/test.js @@ -205,8 +205,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 276, - "endline": 276, + "line": 278, + "endline": 278, "start": 5, "end": 34 }, @@ -223,8 +223,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 277, - "endline": 277, + "line": 279, + "endline": 279, "start": 5, "end": 32 }, @@ -241,8 +241,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 278, - "endline": 278, + "line": 280, + "endline": 280, "start": 5, "end": 31 }, @@ -259,8 +259,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 279, - "endline": 279, + "line": 281, + "endline": 281, "start": 5, "end": 37 }, @@ -277,8 +277,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 280, - "endline": 280, + "line": 282, + "endline": 282, "start": 5, "end": 38 }, @@ -295,8 +295,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 281, - "endline": 281, + "line": 283, + "endline": 283, "start": 5, "end": 45 }, @@ -317,8 +317,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 283, - "endline": 283, + "line": 285, + "endline": 285, "start": 5, "end": 62 }, @@ -339,8 +339,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 284, - "endline": 284, + "line": 286, + "endline": 286, "start": 5, "end": 62 }, @@ -361,8 +361,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 285, - "endline": 285, + "line": 287, + "endline": 287, "start": 5, "end": 60 }, @@ -383,8 +383,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 286, - "endline": 286, + "line": 288, + "endline": 288, "start": 5, "end": 64 }, @@ -393,8 +393,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "number", "func_details": null, "path": "[LIB] core.js", - "line": 310, - "endline": 310, + "line": 312, + "endline": 312, "start": 13, "end": 18 }, @@ -411,8 +411,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 287, - "endline": 287, + "line": 289, + "endline": 289, "start": 5, "end": 30 }, @@ -429,8 +429,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 288, - "endline": 288, + "line": 290, + "endline": 290, "start": 5, "end": 39 }, @@ -447,8 +447,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 289, - "endline": 289, + "line": 291, + "endline": 291, "start": 5, "end": 50 }, @@ -465,8 +465,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 290, - "endline": 290, + "line": 292, + "endline": 292, "start": 5, "end": 38 }, @@ -487,8 +487,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 291, - "endline": 291, + "line": 293, + "endline": 293, "start": 5, "end": 60 }, @@ -509,8 +509,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 292, - "endline": 292, + "line": 294, + "endline": 294, "start": 5, "end": 62 }, @@ -527,8 +527,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 293, - "endline": 293, + "line": 295, + "endline": 295, "start": 5, "end": 33 }, @@ -549,8 +549,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 294, - "endline": 294, + "line": 296, + "endline": 296, "start": 5, "end": 124 }, @@ -567,8 +567,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 295, - "endline": 295, + "line": 297, + "endline": 297, "start": 5, "end": 43 }, @@ -589,8 +589,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 296, - "endline": 296, + "line": 298, + "endline": 298, "start": 5, "end": 47 }, @@ -611,8 +611,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 297, - "endline": 297, + "line": 299, + "endline": 299, "start": 5, "end": 69 }, @@ -633,8 +633,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 298, - "endline": 298, + "line": 300, + "endline": 300, "start": 5, "end": 64 }, @@ -655,8 +655,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 299, - "endline": 299, + "line": 301, + "endline": 301, "start": 5, "end": 49 }, @@ -677,8 +677,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 300, - "endline": 300, + "line": 302, + "endline": 302, "start": 5, "end": 50 }, @@ -690,8 +690,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 301, - "endline": 301, + "line": 303, + "endline": 303, "start": 5, "end": 31 }, @@ -703,8 +703,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 302, - "endline": 302, + "line": 304, + "endline": 304, "start": 5, "end": 31 }, @@ -716,8 +716,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 303, - "endline": 303, + "line": 305, + "endline": 305, "start": 5, "end": 25 }, @@ -729,8 +729,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 309, - "endline": 309, + "line": 311, + "endline": 311, "start": 5, "end": 22 }, @@ -742,8 +742,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 304, - "endline": 304, + "line": 306, + "endline": 306, "start": 5, "end": 25 }, @@ -755,8 +755,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 305, - "endline": 305, + "line": 307, + "endline": 307, "start": 5, "end": 18 }, @@ -768,8 +768,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 306, - "endline": 306, + "line": 308, + "endline": 308, "start": 5, "end": 22 }, @@ -781,8 +781,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 307, - "endline": 307, + "line": 309, + "endline": 309, "start": 5, "end": 23 }, @@ -794,8 +794,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 308, - "endline": 308, + "line": 310, + "endline": 310, "start": 5, "end": 21 } @@ -826,8 +826,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 130, - "endline": 130, + "line": 132, + "endline": 132, "start": 5, "end": 50 }, @@ -844,8 +844,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 131, - "endline": 131, + "line": 133, + "endline": 133, "start": 5, "end": 44 }, @@ -862,8 +862,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 132, - "endline": 132, + "line": 134, + "endline": 134, "start": 5, "end": 43 }, @@ -880,8 +880,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 133, - "endline": 133, + "line": 135, + "endline": 135, "start": 5, "end": 36 }, @@ -893,8 +893,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 134, - "endline": 134, + "line": 136, + "endline": 136, "start": 5, "end": 21 } @@ -920,8 +920,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 110, - "endline": 110, + "line": 112, + "endline": 112, "start": 5, "end": 22 }, @@ -933,8 +933,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 109, - "endline": 109, + "line": 111, + "endline": 111, "start": 5, "end": 22 } @@ -1193,8 +1193,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 97, - "endline": 97, + "line": 99, + "endline": 99, "start": 12, "end": 35 }, @@ -1203,8 +1203,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "any", "func_details": null, "path": "[LIB] core.js", - "line": 100, - "endline": 100, + "line": 102, + "endline": 102, "start": 16, "end": 18 }, @@ -1225,8 +1225,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 98, - "endline": 98, + "line": 100, + "endline": 100, "start": 11, "end": 33 }, @@ -1247,8 +1247,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 99, - "endline": 99, + "line": 101, + "endline": 101, "start": 11, "end": 33 }, @@ -1257,8 +1257,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "null | Function", "func_details": null, "path": "[LIB] core.js", - "line": 101, - "endline": 101, + "line": 103, + "endline": 103, "start": 13, "end": 27 }, @@ -1303,8 +1303,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "number", "func_details": null, "path": "[LIB] core.js", - "line": 102, - "endline": 102, + "line": 104, + "endline": 104, "start": 13, "end": 18 }, @@ -1313,8 +1313,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "string", "func_details": null, "path": "[LIB] core.js", - "line": 103, - "endline": 103, + "line": 105, + "endline": 105, "start": 11, "end": 16 }, @@ -1406,8 +1406,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 97, - "endline": 97, + "line": 99, + "endline": 99, "start": 12, "end": 35 }, @@ -1416,8 +1416,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "any", "func_details": null, "path": "[LIB] core.js", - "line": 100, - "endline": 100, + "line": 102, + "endline": 102, "start": 16, "end": 18 }, @@ -1438,8 +1438,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 98, - "endline": 98, + "line": 100, + "endline": 100, "start": 11, "end": 33 }, @@ -1460,8 +1460,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 99, - "endline": 99, + "line": 101, + "endline": 101, "start": 11, "end": 33 }, @@ -1470,8 +1470,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "null | Function", "func_details": null, "path": "[LIB] core.js", - "line": 101, - "endline": 101, + "line": 103, + "endline": 103, "start": 13, "end": 27 }, @@ -1516,8 +1516,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "number", "func_details": null, "path": "[LIB] core.js", - "line": 102, - "endline": 102, + "line": 104, + "endline": 104, "start": 13, "end": 18 }, @@ -1526,8 +1526,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "string", "func_details": null, "path": "[LIB] core.js", - "line": 103, - "endline": 103, + "line": 105, + "endline": 105, "start": 11, "end": 16 }, @@ -1663,8 +1663,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 130, - "endline": 130, + "line": 132, + "endline": 132, "start": 5, "end": 50 }, @@ -1681,8 +1681,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 131, - "endline": 131, + "line": 133, + "endline": 133, "start": 5, "end": 44 }, @@ -1699,8 +1699,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 132, - "endline": 132, + "line": 134, + "endline": 134, "start": 5, "end": 43 }, @@ -1717,8 +1717,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 133, - "endline": 133, + "line": 135, + "endline": 135, "start": 5, "end": 36 }, @@ -1730,8 +1730,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 134, - "endline": 134, + "line": 136, + "endline": 136, "start": 5, "end": 21 } diff --git a/tests/arrows/arrows.exp b/tests/arrows/arrows.exp index 14ebedbfd9b..c2d07457257 100644 --- a/tests/arrows/arrows.exp +++ b/tests/arrows/arrows.exp @@ -13,8 +13,8 @@ advanced_arrows.js:11 arrows.js:7 7: images = images.sort((a, b) => (a.width - b.width) + ""); ^^^^^^^^^^^^^^^^^^^^^^^^ string. This type is incompatible with the expected param type of -258: sort(compareFn?: (a: T, b: T) => number): Array; - ^^^^^^ number. See lib: /core.js:258 +260: sort(compareFn?: (a: T, b: T) => number): Array; + ^^^^^^ number. See lib: /core.js:260 Found 3 errors diff --git a/tests/async/async.exp b/tests/async/async.exp index 85023553385..9871a06c6a3 100644 --- a/tests/async/async.exp +++ b/tests/async/async.exp @@ -7,16 +7,16 @@ async.js:12 async.js:31 31: return await p; // error, number != bool ^^^^^^^ number. This type is incompatible with -667: declare function $await(p: Promise | T): T; - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of async return. See lib: /core.js:667 +673: declare function $await(p: Promise | T): T; + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of async return. See lib: /core.js:673 Member 1: - 667: declare function $await(p: Promise | T): T; - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:667 + 673: declare function $await(p: Promise | T): T; + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:673 Error: 31: return await p; // error, number != bool ^^^^^^^ number. This type is incompatible with - 667: declare function $await(p: Promise | T): T; - ^^^^^^^^^^ Promise. See lib: /core.js:667 + 673: declare function $await(p: Promise | T): T; + ^^^^^^^^^^ Promise. See lib: /core.js:673 Member 2: 31: return await p; // error, number != bool ^^^^^^^ type parameter `T` of async return diff --git a/tests/autocomplete/autocomplete.exp b/tests/autocomplete/autocomplete.exp index 6fee4a6c0da..8ac240e5cc0 100644 --- a/tests/autocomplete/autocomplete.exp +++ b/tests/autocomplete/autocomplete.exp @@ -9,20 +9,20 @@ valueOf () => Object foo.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":34},{"name":"num","type":"number","func_details":null,"path":"foo.js","line":6,"endline":6,"start":8,"end":10},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":44},{"name":"str","type":"string","func_details":null,"path":"foo.js","line":7,"endline":7,"start":8,"end":14},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":56,"endline":56,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":57,"endline":57,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":58,"endline":58,"start":5,"end":21}]} bar.js = {"error":"not enough type information to autocomplete","result":[]} qux.js = {"result":[{"name":"x","type":"number","func_details":null,"path":"qux.js","line":3,"endline":3,"start":14,"end":19}]} -str.js = {"result":[{"name":"@@iterator","type":"() => Iterator","func_details":{"return_type":"Iterator","params":[]},"path":"[LIB] core.js","line":276,"endline":276,"start":5,"end":34},{"name":"anchor","type":"(name: string) => string","func_details":{"return_type":"string","params":[{"name":"name","type":"string"}]},"path":"[LIB] core.js","line":277,"endline":277,"start":5,"end":32},{"name":"charAt","type":"(pos: number) => string","func_details":{"return_type":"string","params":[{"name":"pos","type":"number"}]},"path":"[LIB] core.js","line":278,"endline":278,"start":5,"end":31},{"name":"charCodeAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":279,"endline":279,"start":5,"end":37},{"name":"codePointAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":280,"endline":280,"start":5,"end":38},{"name":"concat","type":"(...strings: Array) => string","func_details":{"return_type":"string","params":[{"name":"...strings","type":"Array"}]},"path":"[LIB] core.js","line":281,"endline":281,"start":5,"end":45},{"name":"endsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":283,"endline":283,"start":5,"end":62},{"name":"includes","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":284,"endline":284,"start":5,"end":62},{"name":"indexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":285,"endline":285,"start":5,"end":60},{"name":"lastIndexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":286,"endline":286,"start":5,"end":64},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":310,"endline":310,"start":13,"end":18},{"name":"link","type":"(href: string) => string","func_details":{"return_type":"string","params":[{"name":"href","type":"string"}]},"path":"[LIB] core.js","line":287,"endline":287,"start":5,"end":30},{"name":"localeCompare","type":"(that: string) => number","func_details":{"return_type":"number","params":[{"name":"that","type":"string"}]},"path":"[LIB] core.js","line":288,"endline":288,"start":5,"end":39},{"name":"match","type":"(regexp: string | RegExp) => ?Array","func_details":{"return_type":"?Array","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":289,"endline":289,"start":5,"end":50},{"name":"normalize","type":"(format?: string) => string","func_details":{"return_type":"string","params":[{"name":"format?","type":"string"}]},"path":"[LIB] core.js","line":290,"endline":290,"start":5,"end":38},{"name":"padEnd","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":291,"endline":291,"start":5,"end":60},{"name":"padStart","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":292,"endline":292,"start":5,"end":62},{"name":"repeat","type":"(count: number) => string","func_details":{"return_type":"string","params":[{"name":"count","type":"number"}]},"path":"[LIB] core.js","line":293,"endline":293,"start":5,"end":33},{"name":"replace","type":"(searchValue: string | RegExp, replaceValue: string | ((substring: string, ...args: Array) => string)) => string","func_details":{"return_type":"string","params":[{"name":"searchValue","type":"string | RegExp"},{"name":"replaceValue","type":"string | ((substring: string, ...args: Array) => string)"}]},"path":"[LIB] core.js","line":294,"endline":294,"start":5,"end":124},{"name":"search","type":"(regexp: string | RegExp) => number","func_details":{"return_type":"number","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":295,"endline":295,"start":5,"end":43},{"name":"slice","type":"(start?: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start?","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":296,"endline":296,"start":5,"end":47},{"name":"split","type":"(separator?: string | RegExp, limit?: number) => Array","func_details":{"return_type":"Array","params":[{"name":"separator?","type":"string | RegExp"},{"name":"limit?","type":"number"}]},"path":"[LIB] core.js","line":297,"endline":297,"start":5,"end":69},{"name":"startsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":298,"endline":298,"start":5,"end":64},{"name":"substr","type":"(from: number, length?: number) => string","func_details":{"return_type":"string","params":[{"name":"from","type":"number"},{"name":"length?","type":"number"}]},"path":"[LIB] core.js","line":299,"endline":299,"start":5,"end":49},{"name":"substring","type":"(start: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":300,"endline":300,"start":5,"end":50},{"name":"toLocaleLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":301,"endline":301,"start":5,"end":31},{"name":"toLocaleUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":302,"endline":302,"start":5,"end":31},{"name":"toLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":303,"endline":303,"start":5,"end":25},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":309,"endline":309,"start":5,"end":22},{"name":"toUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":304,"endline":304,"start":5,"end":25},{"name":"trim","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":305,"endline":305,"start":5,"end":18},{"name":"trimLeft","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":306,"endline":306,"start":5,"end":22},{"name":"trimRight","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":307,"endline":307,"start":5,"end":23},{"name":"valueOf","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":308,"endline":308,"start":5,"end":21}]} -num.js = {"result":[{"name":"toExponential","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":130,"endline":130,"start":5,"end":50},{"name":"toFixed","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":131,"endline":131,"start":5,"end":44},{"name":"toPrecision","type":"(precision?: number) => string","func_details":{"return_type":"string","params":[{"name":"precision?","type":"number"}]},"path":"[LIB] core.js","line":132,"endline":132,"start":5,"end":43},{"name":"toString","type":"(radix?: number) => string","func_details":{"return_type":"string","params":[{"name":"radix?","type":"number"}]},"path":"[LIB] core.js","line":133,"endline":133,"start":5,"end":36},{"name":"valueOf","type":"() => number","func_details":{"return_type":"number","params":[]},"path":"[LIB] core.js","line":134,"endline":134,"start":5,"end":21}]} -bool.js = {"result":[{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":110,"endline":110,"start":5,"end":22},{"name":"valueOf","type":"() => boolean","func_details":{"return_type":"boolean","params":[]},"path":"[LIB] core.js","line":109,"endline":109,"start":5,"end":22}]} +str.js = {"result":[{"name":"@@iterator","type":"() => Iterator","func_details":{"return_type":"Iterator","params":[]},"path":"[LIB] core.js","line":278,"endline":278,"start":5,"end":34},{"name":"anchor","type":"(name: string) => string","func_details":{"return_type":"string","params":[{"name":"name","type":"string"}]},"path":"[LIB] core.js","line":279,"endline":279,"start":5,"end":32},{"name":"charAt","type":"(pos: number) => string","func_details":{"return_type":"string","params":[{"name":"pos","type":"number"}]},"path":"[LIB] core.js","line":280,"endline":280,"start":5,"end":31},{"name":"charCodeAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":281,"endline":281,"start":5,"end":37},{"name":"codePointAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":282,"endline":282,"start":5,"end":38},{"name":"concat","type":"(...strings: Array) => string","func_details":{"return_type":"string","params":[{"name":"...strings","type":"Array"}]},"path":"[LIB] core.js","line":283,"endline":283,"start":5,"end":45},{"name":"endsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":285,"endline":285,"start":5,"end":62},{"name":"includes","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":286,"endline":286,"start":5,"end":62},{"name":"indexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":287,"endline":287,"start":5,"end":60},{"name":"lastIndexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":288,"endline":288,"start":5,"end":64},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":312,"endline":312,"start":13,"end":18},{"name":"link","type":"(href: string) => string","func_details":{"return_type":"string","params":[{"name":"href","type":"string"}]},"path":"[LIB] core.js","line":289,"endline":289,"start":5,"end":30},{"name":"localeCompare","type":"(that: string) => number","func_details":{"return_type":"number","params":[{"name":"that","type":"string"}]},"path":"[LIB] core.js","line":290,"endline":290,"start":5,"end":39},{"name":"match","type":"(regexp: string | RegExp) => ?Array","func_details":{"return_type":"?Array","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":291,"endline":291,"start":5,"end":50},{"name":"normalize","type":"(format?: string) => string","func_details":{"return_type":"string","params":[{"name":"format?","type":"string"}]},"path":"[LIB] core.js","line":292,"endline":292,"start":5,"end":38},{"name":"padEnd","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":293,"endline":293,"start":5,"end":60},{"name":"padStart","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":294,"endline":294,"start":5,"end":62},{"name":"repeat","type":"(count: number) => string","func_details":{"return_type":"string","params":[{"name":"count","type":"number"}]},"path":"[LIB] core.js","line":295,"endline":295,"start":5,"end":33},{"name":"replace","type":"(searchValue: string | RegExp, replaceValue: string | ((substring: string, ...args: Array) => string)) => string","func_details":{"return_type":"string","params":[{"name":"searchValue","type":"string | RegExp"},{"name":"replaceValue","type":"string | ((substring: string, ...args: Array) => string)"}]},"path":"[LIB] core.js","line":296,"endline":296,"start":5,"end":124},{"name":"search","type":"(regexp: string | RegExp) => number","func_details":{"return_type":"number","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":297,"endline":297,"start":5,"end":43},{"name":"slice","type":"(start?: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start?","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":298,"endline":298,"start":5,"end":47},{"name":"split","type":"(separator?: string | RegExp, limit?: number) => Array","func_details":{"return_type":"Array","params":[{"name":"separator?","type":"string | RegExp"},{"name":"limit?","type":"number"}]},"path":"[LIB] core.js","line":299,"endline":299,"start":5,"end":69},{"name":"startsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":300,"endline":300,"start":5,"end":64},{"name":"substr","type":"(from: number, length?: number) => string","func_details":{"return_type":"string","params":[{"name":"from","type":"number"},{"name":"length?","type":"number"}]},"path":"[LIB] core.js","line":301,"endline":301,"start":5,"end":49},{"name":"substring","type":"(start: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":302,"endline":302,"start":5,"end":50},{"name":"toLocaleLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":303,"endline":303,"start":5,"end":31},{"name":"toLocaleUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":304,"endline":304,"start":5,"end":31},{"name":"toLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":305,"endline":305,"start":5,"end":25},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":311,"endline":311,"start":5,"end":22},{"name":"toUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":306,"endline":306,"start":5,"end":25},{"name":"trim","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":307,"endline":307,"start":5,"end":18},{"name":"trimLeft","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":308,"endline":308,"start":5,"end":22},{"name":"trimRight","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":309,"endline":309,"start":5,"end":23},{"name":"valueOf","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":310,"endline":310,"start":5,"end":21}]} +num.js = {"result":[{"name":"toExponential","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":132,"endline":132,"start":5,"end":50},{"name":"toFixed","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":133,"endline":133,"start":5,"end":44},{"name":"toPrecision","type":"(precision?: number) => string","func_details":{"return_type":"string","params":[{"name":"precision?","type":"number"}]},"path":"[LIB] core.js","line":134,"endline":134,"start":5,"end":43},{"name":"toString","type":"(radix?: number) => string","func_details":{"return_type":"string","params":[{"name":"radix?","type":"number"}]},"path":"[LIB] core.js","line":135,"endline":135,"start":5,"end":36},{"name":"valueOf","type":"() => number","func_details":{"return_type":"number","params":[]},"path":"[LIB] core.js","line":136,"endline":136,"start":5,"end":21}]} +bool.js = {"result":[{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":112,"endline":112,"start":5,"end":22},{"name":"valueOf","type":"() => boolean","func_details":{"return_type":"boolean","params":[]},"path":"[LIB] core.js","line":111,"endline":111,"start":5,"end":22}]} union.js = {"result":[{"name":"bar","type":"string","func_details":null,"path":"union.js","line":3,"endline":3,"start":36,"end":41},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":56,"endline":56,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":57,"endline":57,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":58,"endline":58,"start":5,"end":21}]} object_builtins.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":56,"endline":56,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":57,"endline":57,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":58,"endline":58,"start":5,"end":21}]} -function_builtins.js = {"result":[{"name":"apply","type":"(thisArg: any, argArray?: any) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"argArray?","type":"any"}]},"path":"[LIB] core.js","line":97,"endline":97,"start":12,"end":35},{"name":"arguments","type":"any","func_details":null,"path":"[LIB] core.js","line":100,"endline":100,"start":16,"end":18},{"name":"bind","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":98,"endline":98,"start":11,"end":33},{"name":"call","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":99,"endline":99,"start":11,"end":33},{"name":"caller","type":"null | Function","func_details":null,"path":"[LIB] core.js","line":101,"endline":101,"start":13,"end":27},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":34},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":102,"endline":102,"start":13,"end":18},{"name":"name","type":"string","func_details":null,"path":"[LIB] core.js","line":103,"endline":103,"start":11,"end":16},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":56,"endline":56,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":57,"endline":57,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":58,"endline":58,"start":5,"end":21}]} -fun.js = {"result":[{"name":"apply","type":"(thisArg: any, argArray?: any) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"argArray?","type":"any"}]},"path":"[LIB] core.js","line":97,"endline":97,"start":12,"end":35},{"name":"arguments","type":"any","func_details":null,"path":"[LIB] core.js","line":100,"endline":100,"start":16,"end":18},{"name":"bind","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":98,"endline":98,"start":11,"end":33},{"name":"call","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":99,"endline":99,"start":11,"end":33},{"name":"caller","type":"null | Function","func_details":null,"path":"[LIB] core.js","line":101,"endline":101,"start":13,"end":27},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":34},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":102,"endline":102,"start":13,"end":18},{"name":"name","type":"string","func_details":null,"path":"[LIB] core.js","line":103,"endline":103,"start":11,"end":16},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":56,"endline":56,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":57,"endline":57,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":58,"endline":58,"start":5,"end":21}]} +function_builtins.js = {"result":[{"name":"apply","type":"(thisArg: any, argArray?: any) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"argArray?","type":"any"}]},"path":"[LIB] core.js","line":99,"endline":99,"start":12,"end":35},{"name":"arguments","type":"any","func_details":null,"path":"[LIB] core.js","line":102,"endline":102,"start":16,"end":18},{"name":"bind","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":100,"endline":100,"start":11,"end":33},{"name":"call","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":101,"endline":101,"start":11,"end":33},{"name":"caller","type":"null | Function","func_details":null,"path":"[LIB] core.js","line":103,"endline":103,"start":13,"end":27},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":34},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":104,"endline":104,"start":13,"end":18},{"name":"name","type":"string","func_details":null,"path":"[LIB] core.js","line":105,"endline":105,"start":11,"end":16},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":56,"endline":56,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":57,"endline":57,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":58,"endline":58,"start":5,"end":21}]} +fun.js = {"result":[{"name":"apply","type":"(thisArg: any, argArray?: any) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"argArray?","type":"any"}]},"path":"[LIB] core.js","line":99,"endline":99,"start":12,"end":35},{"name":"arguments","type":"any","func_details":null,"path":"[LIB] core.js","line":102,"endline":102,"start":16,"end":18},{"name":"bind","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":100,"endline":100,"start":11,"end":33},{"name":"call","type":"(thisArg: any, ...argArray: Array) => any","func_details":{"return_type":"any","params":[{"name":"thisArg","type":"any"},{"name":"...argArray","type":"Array"}]},"path":"[LIB] core.js","line":101,"endline":101,"start":11,"end":33},{"name":"caller","type":"null | Function","func_details":null,"path":"[LIB] core.js","line":103,"endline":103,"start":13,"end":27},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":34},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":104,"endline":104,"start":13,"end":18},{"name":"name","type":"string","func_details":null,"path":"[LIB] core.js","line":105,"endline":105,"start":11,"end":16},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":56,"endline":56,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":57,"endline":57,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":58,"endline":58,"start":5,"end":21}]} this.js = {"result":[{"name":"bar","type":"() => void","func_details":{"return_type":"void","params":[]},"path":"this.js","line":6,"endline":6,"start":3,"end":10},{"name":"baz","type":"string","func_details":null,"path":"this.js","line":5,"endline":5,"start":8,"end":13},{"name":"hello","type":"() => void","func_details":{"return_type":"void","params":[]},"path":"this.js","line":7,"endline":9,"start":3,"end":3}]} -typeparams.js = {"result":[{"name":"toExponential","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":130,"endline":130,"start":5,"end":50},{"name":"toFixed","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":131,"endline":131,"start":5,"end":44},{"name":"toPrecision","type":"(precision?: number) => string","func_details":{"return_type":"string","params":[{"name":"precision?","type":"number"}]},"path":"[LIB] core.js","line":132,"endline":132,"start":5,"end":43},{"name":"toString","type":"(radix?: number) => string","func_details":{"return_type":"string","params":[{"name":"radix?","type":"number"}]},"path":"[LIB] core.js","line":133,"endline":133,"start":5,"end":36},{"name":"valueOf","type":"() => number","func_details":{"return_type":"number","params":[]},"path":"[LIB] core.js","line":134,"endline":134,"start":5,"end":21}]} +typeparams.js = {"result":[{"name":"toExponential","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":132,"endline":132,"start":5,"end":50},{"name":"toFixed","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":133,"endline":133,"start":5,"end":44},{"name":"toPrecision","type":"(precision?: number) => string","func_details":{"return_type":"string","params":[{"name":"precision?","type":"number"}]},"path":"[LIB] core.js","line":134,"endline":134,"start":5,"end":43},{"name":"toString","type":"(radix?: number) => string","func_details":{"return_type":"string","params":[{"name":"radix?","type":"number"}]},"path":"[LIB] core.js","line":135,"endline":135,"start":5,"end":36},{"name":"valueOf","type":"() => number","func_details":{"return_type":"number","params":[]},"path":"[LIB] core.js","line":136,"endline":136,"start":5,"end":21}]} generics.js = {"result":[{"name":"cn","type":"C","func_details":null,"path":"generics.js","line":5,"endline":5,"start":23,"end":31},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":56,"endline":56,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":57,"endline":57,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":58,"endline":58,"start":5,"end":21}]} optional.js = {"result":[{"name":"f","type":"(x?: string) => void","func_details":{"return_type":"void","params":[{"name":"x?","type":"string"}]},"path":"optional.js","line":3,"endline":3,"start":36,"end":55},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":34},{"name":"o","type":"{x?: string}","func_details":null,"path":"optional.js","line":3,"endline":3,"start":61,"end":74},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":56,"endline":56,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":57,"endline":57,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":58,"endline":58,"start":5,"end":21},{"name":"x","type":"string | void","func_details":null,"path":"optional.js","line":3,"endline":3,"start":25,"end":30}]} jsx1.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":56,"endline":56,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":57,"endline":57,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":58,"endline":58,"start":5,"end":21},{"name":"x","type":"number","func_details":null,"path":"jsx1.js","line":6,"endline":6,"start":15,"end":20}]} jsx2.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":56,"endline":56,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":57,"endline":57,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":58,"endline":58,"start":5,"end":21},{"name":"x","type":"number","func_details":null,"path":"jsx2.js","line":6,"endline":6,"start":15,"end":20},{"name":"y","type":"string","func_details":null,"path":"jsx2.js","line":6,"endline":6,"start":26,"end":31}]} customfun.js = {"result":[{"name":"objectGetPrototypeOf","type":"(o: any) => any","func_details":{"return_type":"any","params":[{"name":"o","type":"any"}]},"path":"customfun.js","line":8,"endline":8,"start":1,"end":55},{"name":"objectAssign","type":"(target: any, ...sources: Array) => any","func_details":{"return_type":"any","params":[{"name":"target","type":"any"},{"name":"...sources","type":"Array"}]},"path":"customfun.js","line":9,"endline":9,"start":1,"end":39},{"name":"mixin","type":"(...objects: Array) => [class: Object]","func_details":{"return_type":"[class: Object]","params":[{"name":"...objects","type":"Array"}]},"path":"customfun.js","line":7,"endline":7,"start":1,"end":38},{"name":"mergeInto","type":"(target: Object, ...objects: Array) => void","func_details":{"return_type":"void","params":[{"name":"target","type":"Object"},{"name":"...objects","type":"Array"}]},"path":"customfun.js","line":6,"endline":6,"start":1,"end":46},{"name":"mergeDeepInto","type":"(target: Object, ...objects: Array) => void","func_details":{"return_type":"void","params":[{"name":"target","type":"Object"},{"name":"...objects","type":"Array"}]},"path":"customfun.js","line":5,"endline":5,"start":1,"end":54},{"name":"merge","type":"(...objects: Array) => Object","func_details":{"return_type":"Object","params":[{"name":"...objects","type":"Array"}]},"path":"customfun.js","line":4,"endline":4,"start":1,"end":38},{"name":"idx","type":"","func_details":{"return_type":"?IdxResult","params":[{"name":"obj","type":"IdxObject"},{"name":"pathCallback","type":""}]},"path":"customfun.js","line":3,"endline":3,"start":1,"end":34},{"name":"exports","type":"{}","func_details":null,"path":"","line":0,"endline":0,"start":1,"end":0}]} issue-1368.js = {"result":[{"name":"extended","type":"string","func_details":null,"path":"issue-1368.js","line":11,"endline":11,"start":13,"end":18},{"name":"method","type":"() => void","func_details":{"return_type":"void","params":[]},"path":"issue-1368.js","line":18,"endline":21,"start":3,"end":3},{"name":"prop","type":"number","func_details":null,"path":"issue-1368.js","line":3,"endline":3,"start":9,"end":14}]} -if.js = {"result":[{"name":"@@iterator","type":"() => Iterator","func_details":{"return_type":"Iterator","params":[]},"path":"[LIB] core.js","line":276,"endline":276,"start":5,"end":34},{"name":"anchor","type":"(name: string) => string","func_details":{"return_type":"string","params":[{"name":"name","type":"string"}]},"path":"[LIB] core.js","line":277,"endline":277,"start":5,"end":32},{"name":"charAt","type":"(pos: number) => string","func_details":{"return_type":"string","params":[{"name":"pos","type":"number"}]},"path":"[LIB] core.js","line":278,"endline":278,"start":5,"end":31},{"name":"charCodeAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":279,"endline":279,"start":5,"end":37},{"name":"codePointAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":280,"endline":280,"start":5,"end":38},{"name":"concat","type":"(...strings: Array) => string","func_details":{"return_type":"string","params":[{"name":"...strings","type":"Array"}]},"path":"[LIB] core.js","line":281,"endline":281,"start":5,"end":45},{"name":"endsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":283,"endline":283,"start":5,"end":62},{"name":"includes","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":284,"endline":284,"start":5,"end":62},{"name":"indexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":285,"endline":285,"start":5,"end":60},{"name":"lastIndexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":286,"endline":286,"start":5,"end":64},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":310,"endline":310,"start":13,"end":18},{"name":"link","type":"(href: string) => string","func_details":{"return_type":"string","params":[{"name":"href","type":"string"}]},"path":"[LIB] core.js","line":287,"endline":287,"start":5,"end":30},{"name":"localeCompare","type":"(that: string) => number","func_details":{"return_type":"number","params":[{"name":"that","type":"string"}]},"path":"[LIB] core.js","line":288,"endline":288,"start":5,"end":39},{"name":"match","type":"(regexp: string | RegExp) => ?Array","func_details":{"return_type":"?Array","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":289,"endline":289,"start":5,"end":50},{"name":"normalize","type":"(format?: string) => string","func_details":{"return_type":"string","params":[{"name":"format?","type":"string"}]},"path":"[LIB] core.js","line":290,"endline":290,"start":5,"end":38},{"name":"padEnd","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":291,"endline":291,"start":5,"end":60},{"name":"padStart","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":292,"endline":292,"start":5,"end":62},{"name":"repeat","type":"(count: number) => string","func_details":{"return_type":"string","params":[{"name":"count","type":"number"}]},"path":"[LIB] core.js","line":293,"endline":293,"start":5,"end":33},{"name":"replace","type":"(searchValue: string | RegExp, replaceValue: string | ((substring: string, ...args: Array) => string)) => string","func_details":{"return_type":"string","params":[{"name":"searchValue","type":"string | RegExp"},{"name":"replaceValue","type":"string | ((substring: string, ...args: Array) => string)"}]},"path":"[LIB] core.js","line":294,"endline":294,"start":5,"end":124},{"name":"search","type":"(regexp: string | RegExp) => number","func_details":{"return_type":"number","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":295,"endline":295,"start":5,"end":43},{"name":"slice","type":"(start?: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start?","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":296,"endline":296,"start":5,"end":47},{"name":"split","type":"(separator?: string | RegExp, limit?: number) => Array","func_details":{"return_type":"Array","params":[{"name":"separator?","type":"string | RegExp"},{"name":"limit?","type":"number"}]},"path":"[LIB] core.js","line":297,"endline":297,"start":5,"end":69},{"name":"startsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":298,"endline":298,"start":5,"end":64},{"name":"substr","type":"(from: number, length?: number) => string","func_details":{"return_type":"string","params":[{"name":"from","type":"number"},{"name":"length?","type":"number"}]},"path":"[LIB] core.js","line":299,"endline":299,"start":5,"end":49},{"name":"substring","type":"(start: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":300,"endline":300,"start":5,"end":50},{"name":"toLocaleLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":301,"endline":301,"start":5,"end":31},{"name":"toLocaleUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":302,"endline":302,"start":5,"end":31},{"name":"toLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":303,"endline":303,"start":5,"end":25},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":309,"endline":309,"start":5,"end":22},{"name":"toUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":304,"endline":304,"start":5,"end":25},{"name":"trim","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":305,"endline":305,"start":5,"end":18},{"name":"trimLeft","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":306,"endline":306,"start":5,"end":22},{"name":"trimRight","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":307,"endline":307,"start":5,"end":23},{"name":"valueOf","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":308,"endline":308,"start":5,"end":21}]} +if.js = {"result":[{"name":"@@iterator","type":"() => Iterator","func_details":{"return_type":"Iterator","params":[]},"path":"[LIB] core.js","line":278,"endline":278,"start":5,"end":34},{"name":"anchor","type":"(name: string) => string","func_details":{"return_type":"string","params":[{"name":"name","type":"string"}]},"path":"[LIB] core.js","line":279,"endline":279,"start":5,"end":32},{"name":"charAt","type":"(pos: number) => string","func_details":{"return_type":"string","params":[{"name":"pos","type":"number"}]},"path":"[LIB] core.js","line":280,"endline":280,"start":5,"end":31},{"name":"charCodeAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":281,"endline":281,"start":5,"end":37},{"name":"codePointAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":282,"endline":282,"start":5,"end":38},{"name":"concat","type":"(...strings: Array) => string","func_details":{"return_type":"string","params":[{"name":"...strings","type":"Array"}]},"path":"[LIB] core.js","line":283,"endline":283,"start":5,"end":45},{"name":"endsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":285,"endline":285,"start":5,"end":62},{"name":"includes","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":286,"endline":286,"start":5,"end":62},{"name":"indexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":287,"endline":287,"start":5,"end":60},{"name":"lastIndexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":288,"endline":288,"start":5,"end":64},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":312,"endline":312,"start":13,"end":18},{"name":"link","type":"(href: string) => string","func_details":{"return_type":"string","params":[{"name":"href","type":"string"}]},"path":"[LIB] core.js","line":289,"endline":289,"start":5,"end":30},{"name":"localeCompare","type":"(that: string) => number","func_details":{"return_type":"number","params":[{"name":"that","type":"string"}]},"path":"[LIB] core.js","line":290,"endline":290,"start":5,"end":39},{"name":"match","type":"(regexp: string | RegExp) => ?Array","func_details":{"return_type":"?Array","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":291,"endline":291,"start":5,"end":50},{"name":"normalize","type":"(format?: string) => string","func_details":{"return_type":"string","params":[{"name":"format?","type":"string"}]},"path":"[LIB] core.js","line":292,"endline":292,"start":5,"end":38},{"name":"padEnd","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":293,"endline":293,"start":5,"end":60},{"name":"padStart","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":294,"endline":294,"start":5,"end":62},{"name":"repeat","type":"(count: number) => string","func_details":{"return_type":"string","params":[{"name":"count","type":"number"}]},"path":"[LIB] core.js","line":295,"endline":295,"start":5,"end":33},{"name":"replace","type":"(searchValue: string | RegExp, replaceValue: string | ((substring: string, ...args: Array) => string)) => string","func_details":{"return_type":"string","params":[{"name":"searchValue","type":"string | RegExp"},{"name":"replaceValue","type":"string | ((substring: string, ...args: Array) => string)"}]},"path":"[LIB] core.js","line":296,"endline":296,"start":5,"end":124},{"name":"search","type":"(regexp: string | RegExp) => number","func_details":{"return_type":"number","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":297,"endline":297,"start":5,"end":43},{"name":"slice","type":"(start?: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start?","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":298,"endline":298,"start":5,"end":47},{"name":"split","type":"(separator?: string | RegExp, limit?: number) => Array","func_details":{"return_type":"Array","params":[{"name":"separator?","type":"string | RegExp"},{"name":"limit?","type":"number"}]},"path":"[LIB] core.js","line":299,"endline":299,"start":5,"end":69},{"name":"startsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":300,"endline":300,"start":5,"end":64},{"name":"substr","type":"(from: number, length?: number) => string","func_details":{"return_type":"string","params":[{"name":"from","type":"number"},{"name":"length?","type":"number"}]},"path":"[LIB] core.js","line":301,"endline":301,"start":5,"end":49},{"name":"substring","type":"(start: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":302,"endline":302,"start":5,"end":50},{"name":"toLocaleLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":303,"endline":303,"start":5,"end":31},{"name":"toLocaleUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":304,"endline":304,"start":5,"end":31},{"name":"toLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":305,"endline":305,"start":5,"end":25},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":311,"endline":311,"start":5,"end":22},{"name":"toUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":306,"endline":306,"start":5,"end":25},{"name":"trim","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":307,"endline":307,"start":5,"end":18},{"name":"trimLeft","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":308,"endline":308,"start":5,"end":22},{"name":"trimRight","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":309,"endline":309,"start":5,"end":23},{"name":"valueOf","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":310,"endline":310,"start":5,"end":21}]} override.js = {"result":[{"name":"bar","type":"() => void","func_details":{"return_type":"void","params":[]},"path":"override.js","line":10,"endline":11,"start":3,"end":0},{"name":"foo","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"override.js","line":8,"endline":8,"start":3,"end":34},{"name":"override","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"override.js","line":9,"endline":9,"start":3,"end":35}]} diff --git a/tests/core_tests/core_tests.exp b/tests/core_tests/core_tests.exp index d80efb4d397..f3bff079a6c 100644 --- a/tests/core_tests/core_tests.exp +++ b/tests/core_tests/core_tests.exp @@ -3,16 +3,16 @@ map.js:23 ^^^^^^^^^^^^^^^^^^^^^ constructor call 23: let x = new Map(['foo', 123]); // error ^^^^^ string. This type is incompatible with -596: constructor(iterable: ?Iterable<[K, V]>): void; - ^^^^^^ tuple type. See lib: /core.js:596 +602: constructor(iterable: ?Iterable<[K, V]>): void; + ^^^^^^ tuple type. See lib: /core.js:602 map.js:23 23: let x = new Map(['foo', 123]); // error ^^^^^^^^^^^^^^^^^^^^^ constructor call 23: let x = new Map(['foo', 123]); // error ^^^ number. This type is incompatible with -596: constructor(iterable: ?Iterable<[K, V]>): void; - ^^^^^^ tuple type. See lib: /core.js:596 +602: constructor(iterable: ?Iterable<[K, V]>): void; + ^^^^^^ tuple type. See lib: /core.js:602 map.js:24 24: let y: Map = new Map([['foo', 123]]); // error @@ -51,46 +51,46 @@ map.js:30 regexp.js:26 26: RegExp('foo', 'z'); // error ^^^ string. This type is incompatible with the expected param type of -387: static (pattern: string | RegExp, flags?: RegExp$flags): RegExp; - ^^^^^^^^^^^^ string enum. See lib: /core.js:387 +389: static (pattern: string | RegExp, flags?: RegExp$flags): RegExp; + ^^^^^^^^^^^^ string enum. See lib: /core.js:389 regexp.js:27 27: new RegExp('foo', 'z'); // error ^^^ string. This type is incompatible with the expected param type of -389: constructor(pattern: string | RegExp, flags?: RegExp$flags): RegExp; - ^^^^^^^^^^^^ string enum. See lib: /core.js:389 +391: constructor(pattern: string | RegExp, flags?: RegExp$flags): RegExp; + ^^^^^^^^^^^^ string enum. See lib: /core.js:391 weakset.js:19 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^^^^^^^^^^^^^^^^^^^^^^ constructor call 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^ number. This type is incompatible with -634: declare class WeakSet { - ^^^^^^ object type. See lib: /core.js:634 +640: declare class WeakSet { + ^^^^^^ object type. See lib: /core.js:640 weakset.js:19 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^^^^^^^^^^^^^^^^^^^^^^ constructor call 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^ number. This type is incompatible with -634: declare class WeakSet { - ^^^^^^ object type. See lib: /core.js:634 +640: declare class WeakSet { + ^^^^^^ object type. See lib: /core.js:640 weakset.js:19 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^^^^^^^^^^^^^^^^^^^^^^ constructor call 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^ number. This type is incompatible with -634: declare class WeakSet { - ^^^^^^ object type. See lib: /core.js:634 +640: declare class WeakSet { + ^^^^^^ object type. See lib: /core.js:640 weakset.js:36 36: let ws5 = new WeakSet(numbers()); // error, must be objects ^^^^^^^^^^^^^^^^^^^^^^ constructor call 29: function* numbers(): Iterable { ^^^^^^ number. This type is incompatible with -634: declare class WeakSet { - ^^^^^^ object type. See lib: /core.js:634 +640: declare class WeakSet { + ^^^^^^ object type. See lib: /core.js:640 Found 13 errors diff --git a/tests/date/date.exp b/tests/date/date.exp index 98d9133a872..13717aefbfd 100644 --- a/tests/date/date.exp +++ b/tests/date/date.exp @@ -10,37 +10,37 @@ date.js:18 18: new Date({}); ^^^^ intersection Member 1: - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 Error: 18: new Date({}); ^^ unused function argument - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:422 Member 2: - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 Error: 18: new Date({}); ^^ object literal. This type is incompatible with the expected param type of - 421: constructor(timestamp: number): void; - ^^^^^^ number. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^ number. See lib: /core.js:423 Member 3: - 422: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:424 Error: 18: new Date({}); ^^ object literal. This type is incompatible with the expected param type of - 422: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:424 Member 4: - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:425 Error: 18: new Date({}); ^^ object literal. This type is incompatible with the expected param type of - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:425 date.js:19 19: new Date(2015, '6'); @@ -48,37 +48,37 @@ date.js:19 19: new Date(2015, '6'); ^^^^ intersection Member 1: - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 Error: 19: new Date(2015, '6'); ^^^^ unused function argument - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:422 Member 2: - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 Error: 19: new Date(2015, '6'); ^^^ unused function argument - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:423 Member 3: - 422: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:424 Error: 19: new Date(2015, '6'); ^^^^ number. This type is incompatible with the expected param type of - 422: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:424 Member 4: - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:425 Error: 19: new Date(2015, '6'); ^^^ string. This type is incompatible with the expected param type of - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:425 date.js:20 20: new Date(2015, 6, '18'); @@ -86,37 +86,37 @@ date.js:20 20: new Date(2015, 6, '18'); ^^^^ intersection Member 1: - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 Error: 20: new Date(2015, 6, '18'); ^^^^ unused function argument - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:422 Member 2: - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 Error: 20: new Date(2015, 6, '18'); ^ unused function argument - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:423 Member 3: - 422: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:424 Error: 20: new Date(2015, 6, '18'); ^^^^ number. This type is incompatible with the expected param type of - 422: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:424 Member 4: - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:425 Error: 20: new Date(2015, 6, '18'); ^^^^ string. This type is incompatible with the expected param type of - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:425 date.js:21 21: new Date(2015, 6, 18, '11'); @@ -124,37 +124,37 @@ date.js:21 21: new Date(2015, 6, 18, '11'); ^^^^ intersection Member 1: - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 Error: 21: new Date(2015, 6, 18, '11'); ^^^^ unused function argument - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:422 Member 2: - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 Error: 21: new Date(2015, 6, 18, '11'); ^ unused function argument - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:423 Member 3: - 422: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:424 Error: 21: new Date(2015, 6, 18, '11'); ^^^^ number. This type is incompatible with the expected param type of - 422: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:424 Member 4: - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:425 Error: 21: new Date(2015, 6, 18, '11'); ^^^^ string. This type is incompatible with the expected param type of - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:425 date.js:22 22: new Date(2015, 6, 18, 11, '55'); @@ -162,37 +162,37 @@ date.js:22 22: new Date(2015, 6, 18, 11, '55'); ^^^^ intersection Member 1: - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 Error: 22: new Date(2015, 6, 18, 11, '55'); ^^^^ unused function argument - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:422 Member 2: - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 Error: 22: new Date(2015, 6, 18, 11, '55'); ^ unused function argument - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:423 Member 3: - 422: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:424 Error: 22: new Date(2015, 6, 18, 11, '55'); ^^^^ number. This type is incompatible with the expected param type of - 422: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:424 Member 4: - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:425 Error: 22: new Date(2015, 6, 18, 11, '55'); ^^^^ string. This type is incompatible with the expected param type of - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:425 date.js:23 23: new Date(2015, 6, 18, 11, 55, '42'); @@ -200,37 +200,37 @@ date.js:23 23: new Date(2015, 6, 18, 11, 55, '42'); ^^^^ intersection Member 1: - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 Error: 23: new Date(2015, 6, 18, 11, 55, '42'); ^^^^ unused function argument - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:422 Member 2: - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 Error: 23: new Date(2015, 6, 18, 11, 55, '42'); ^ unused function argument - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:423 Member 3: - 422: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:424 Error: 23: new Date(2015, 6, 18, 11, 55, '42'); ^^^^ number. This type is incompatible with the expected param type of - 422: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:424 Member 4: - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:425 Error: 23: new Date(2015, 6, 18, 11, 55, '42'); ^^^^ string. This type is incompatible with the expected param type of - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:425 date.js:24 24: new Date(2015, 6, 18, 11, 55, 42, '999'); @@ -238,37 +238,37 @@ date.js:24 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^^^^ intersection Member 1: - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 Error: 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^^^^ unused function argument - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:422 Member 2: - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 Error: 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^ unused function argument - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:423 Member 3: - 422: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:424 Error: 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^^^^ number. This type is incompatible with the expected param type of - 422: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:424 Member 4: - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:425 Error: 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^^^^^ string. This type is incompatible with the expected param type of - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:425 date.js:25 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); @@ -276,37 +276,37 @@ date.js:25 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^^^^ intersection Member 1: - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 Error: 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^^^^ unused function argument - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:422 Member 2: - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 Error: 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^ unused function argument - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:423 Member 3: - 422: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:424 Error: 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^^^^ number. This type is incompatible with the expected param type of - 422: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:424 Member 4: - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:425 Error: 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^^^^^^^^ unused function argument - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 7 arguments. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 7 arguments. See lib: /core.js:425 date.js:26 26: new Date('2015', 6); @@ -314,37 +314,37 @@ date.js:26 26: new Date('2015', 6); ^^^^ intersection Member 1: - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 Error: 26: new Date('2015', 6); ^^^^^^ unused function argument - 420: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:420 + 422: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:422 Member 2: - 421: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 Error: 26: new Date('2015', 6); ^^^^^^ string. This type is incompatible with the expected param type of - 421: constructor(timestamp: number): void; - ^^^^^^ number. See lib: /core.js:421 + 423: constructor(timestamp: number): void; + ^^^^^^ number. See lib: /core.js:423 Member 3: - 422: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:424 Error: 26: new Date('2015', 6); ^ unused function argument - 422: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:422 + 424: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:424 Member 4: - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:425 Error: 26: new Date('2015', 6); ^^^^^^ string. This type is incompatible with the expected param type of - 423: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:423 + 425: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:425 Found 10 errors diff --git a/tests/fetch/fetch.exp b/tests/fetch/fetch.exp index 0591f66f076..f233049621b 100644 --- a/tests/fetch/fetch.exp +++ b/tests/fetch/fetch.exp @@ -492,8 +492,8 @@ response.js:30 849: type BodyInit = string | URLSearchParams | FormData | Blob | ArrayBuffer | $ArrayBufferView; ^^^^^^^^^^^^^^^^ union: $TypedArray | DataView. See lib: /bom.js:849 Member 1: - 682: type $ArrayBufferView = $TypedArray | DataView; - ^^^^^^^^^^^ $TypedArray. See lib: /core.js:682 + 688: type $ArrayBufferView = $TypedArray | DataView; + ^^^^^^^^^^^ $TypedArray. See lib: /core.js:688 Error: v 30: const i: Response = new Response({ @@ -502,11 +502,11 @@ response.js:30 ...: 35: }); // incorrect ^ object literal. This type is incompatible with - 682: type $ArrayBufferView = $TypedArray | DataView; - ^^^^^^^^^^^ $TypedArray. See lib: /core.js:682 + 688: type $ArrayBufferView = $TypedArray | DataView; + ^^^^^^^^^^^ $TypedArray. See lib: /core.js:688 Member 2: - 682: type $ArrayBufferView = $TypedArray | DataView; - ^^^^^^^^ DataView. See lib: /core.js:682 + 688: type $ArrayBufferView = $TypedArray | DataView; + ^^^^^^^^ DataView. See lib: /core.js:688 Error: v 30: const i: Response = new Response({ @@ -515,8 +515,8 @@ response.js:30 ...: 35: }); // incorrect ^ object literal. This type is incompatible with - 682: type $ArrayBufferView = $TypedArray | DataView; - ^^^^^^^^ DataView. See lib: /core.js:682 + 688: type $ArrayBufferView = $TypedArray | DataView; + ^^^^^^^^ DataView. See lib: /core.js:688 response.js:42 42: h.text().then((t: Buffer) => t); // incorrect diff --git a/tests/function/function.exp b/tests/function/function.exp index 24a40f0ab8a..c34fdd73132 100644 --- a/tests/function/function.exp +++ b/tests/function/function.exp @@ -41,8 +41,8 @@ apply.js:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call of method `apply` 1: function test(a: string, b: number): number { ^^^^^^ number. This type is incompatible with -276: @@iterator(): Iterator; - ^^^^^^ string. See lib: /core.js:276 +278: @@iterator(): Iterator; + ^^^^^^ string. See lib: /core.js:278 apply.js:32 32: (test.call.apply(test, [0, 123, 'foo']): void); @@ -211,8 +211,8 @@ function.js:43 function.js:48 48: x.length = 'foo'; // error, it's a number ^^^^^ string. This type is incompatible with -102: length: number; - ^^^^^^ number. See lib: /core.js:102 +104: length: number; + ^^^^^^ number. See lib: /core.js:104 function.js:49 49: y.length = 'foo'; // error, it's a number @@ -233,8 +233,8 @@ function.js:50 function.js:52 52: x.name = 123; // error, it's a string ^^^ number. This type is incompatible with -103: name: string; - ^^^^^^ string. See lib: /core.js:103 +105: name: string; + ^^^^^^ string. See lib: /core.js:105 function.js:53 53: y.name = 123; // error, it's a string diff --git a/tests/generators/generators.exp b/tests/generators/generators.exp index 558f0b6f236..0ae71987fb2 100644 --- a/tests/generators/generators.exp +++ b/tests/generators/generators.exp @@ -63,8 +63,8 @@ class.js:122 class.js:125 125: examples.delegate_next_iterable([]).next(""); // error: Iterator has no next value ^^ string. This type is incompatible with -554: type Iterator<+T> = $Iterator; - ^^^^ undefined. See lib: /core.js:554 +563: type Iterator<+T> = $Iterator; + ^^^^ undefined. See lib: /core.js:563 class.js:128 128: (x : string) // error: number ~> string @@ -157,8 +157,8 @@ generators.js:87 generators.js:94 94: delegate_next_iterable([]).next(""); // error: Iterator has no next value ^^ string. This type is incompatible with -554: type Iterator<+T> = $Iterator; - ^^^^ undefined. See lib: /core.js:554 +563: type Iterator<+T> = $Iterator; + ^^^^ undefined. See lib: /core.js:563 generators.js:100 100: (x : string) // error: number ~> string diff --git a/tests/iterable/iterable.exp b/tests/iterable/iterable.exp index a40e4d744f6..6df8f975ee1 100644 --- a/tests/iterable/iterable.exp +++ b/tests/iterable/iterable.exp @@ -19,20 +19,20 @@ caching_bug.js:21 iterator_result.js:23 23: return { done, value: "still going..." }; // Error string ~> void ^^^^ boolean. Expected boolean literal `false`, got `true` instead -548: | { done: false, value: Yield }; - ^^^^^ boolean literal `false`. See lib: /core.js:548 +550: | { done: false, value: Yield }; + ^^^^^ boolean literal `false`. See lib: /core.js:550 iterator_result.js:25 25: return { done }; // Error void ~> string ^^^^ boolean. Expected boolean literal `true`, got `false` instead -547: | { done: true, value?: Return } - ^^^^ boolean literal `true`. See lib: /core.js:547 +549: | { done: true, value?: Return } + ^^^^ boolean literal `true`. See lib: /core.js:549 map.js:13 13: function mapTest4(map: Map): Iterable { ^^^^^^ string. This type is incompatible with -595: @@iterator(): Iterator<[K, V]>; - ^^^^^^ tuple type. See lib: /core.js:595 +601: @@iterator(): Iterator<[K, V]>; + ^^^^^^ tuple type. See lib: /core.js:601 set.js:13 13: function setTest4(set: Set): Iterable { @@ -43,8 +43,8 @@ set.js:13 string.js:5 5: ("hi": Iterable); // Error - string is a Iterable ^^^^^^ number. This type is incompatible with -276: @@iterator(): Iterator; - ^^^^^^ string. See lib: /core.js:276 +278: @@iterator(): Iterator; + ^^^^^^ string. See lib: /core.js:278 Found 8 errors diff --git a/tests/misc/misc.exp b/tests/misc/misc.exp index b2ceda78682..f57b5bc5f7f 100644 --- a/tests/misc/misc.exp +++ b/tests/misc/misc.exp @@ -67,8 +67,8 @@ G.js:6 ^^^^^^^^ assignment of property `length` 6: b.length = "duck"; ^^^^^^ string. This type is incompatible with -224: length: number; - ^^^^^^ number. See lib: /core.js:224 +226: length: number; + ^^^^^^ number. See lib: /core.js:226 G.js:7 7: b.length(); diff --git a/tests/object_api/object_api.exp b/tests/object_api/object_api.exp index c9d855e7800..badf61e42de 100644 --- a/tests/object_api/object_api.exp +++ b/tests/object_api/object_api.exp @@ -97,14 +97,14 @@ object_prototype.js:49 object_prototype.js:51 51: (123).toString('foo'); // error ^^^^^ string. This type is incompatible with the expected param type of -133: toString(radix?: number): string; - ^^^^^^ number. See lib: /core.js:133 +135: toString(radix?: number): string; + ^^^^^^ number. See lib: /core.js:135 object_prototype.js:52 52: (123).toString(null); // error ^^^^ null. This type is incompatible with the expected param type of -133: toString(radix?: number): string; - ^^^^^^ number. See lib: /core.js:133 +135: toString(radix?: number): string; + ^^^^^^ number. See lib: /core.js:135 object_prototype.js:68 68: b.hasOwnProperty = function() { return false; }; @@ -187,8 +187,8 @@ object_prototype.js:150 object_prototype.js:151 151: var xToLocaleString2 : () => number = x.toLocaleString; // error ^^^^^^ number. This type is incompatible with -461: toLocaleString(locales?: string, options?: Date$LocaleOptions): string; - ^^^^^^ string. See lib: /core.js:461 +463: toLocaleString(locales?: string, options?: Date$LocaleOptions): string; + ^^^^^^ string. See lib: /core.js:463 object_prototype.js:155 155: var yToLocaleString : number = y.toLocaleString; // error diff --git a/tests/objmap/objmap.exp b/tests/objmap/objmap.exp index b6b4749ba9b..0c1550d8950 100644 --- a/tests/objmap/objmap.exp +++ b/tests/objmap/objmap.exp @@ -7,11 +7,11 @@ objmap.js:10 objmap.js:13 13: foo: Promise.resolve(0), ^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with -667: declare function $await(p: Promise | T): T; - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of object map. See lib: /core.js:667 +673: declare function $await(p: Promise | T): T; + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of object map. See lib: /core.js:673 Member 1: - 667: declare function $await(p: Promise | T): T; - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:667 + 673: declare function $await(p: Promise | T): T; + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:673 Error: 16: (o.foo: string); // error, number ~> string ^^^^^ number. This type is incompatible with diff --git a/tests/overload/overload.exp b/tests/overload/overload.exp index e8cbeda5004..902e238b7e6 100644 --- a/tests/overload/overload.exp +++ b/tests/overload/overload.exp @@ -3,24 +3,24 @@ overload.js:7 ^^^^^^^^^^^ call of method `match` 7: var x1: number = "".match(0)[0]; ^ number. This type is incompatible with -289: match(regexp: string | RegExp): ?Array; - ^^^^^^^^^^^^^^^ union: string | RegExp. See lib: /core.js:289 +291: match(regexp: string | RegExp): ?Array; + ^^^^^^^^^^^^^^^ union: string | RegExp. See lib: /core.js:291 Member 1: - 289: match(regexp: string | RegExp): ?Array; - ^^^^^^ string. See lib: /core.js:289 + 291: match(regexp: string | RegExp): ?Array; + ^^^^^^ string. See lib: /core.js:291 Error: 7: var x1: number = "".match(0)[0]; ^ number. This type is incompatible with - 289: match(regexp: string | RegExp): ?Array; - ^^^^^^ string. See lib: /core.js:289 + 291: match(regexp: string | RegExp): ?Array; + ^^^^^^ string. See lib: /core.js:291 Member 2: - 289: match(regexp: string | RegExp): ?Array; - ^^^^^^ RegExp. See lib: /core.js:289 + 291: match(regexp: string | RegExp): ?Array; + ^^^^^^ RegExp. See lib: /core.js:291 Error: 7: var x1: number = "".match(0)[0]; ^ number. This type is incompatible with - 289: match(regexp: string | RegExp): ?Array; - ^^^^^^ RegExp. See lib: /core.js:289 + 291: match(regexp: string | RegExp): ?Array; + ^^^^^^ RegExp. See lib: /core.js:291 overload.js:7 7: var x1: number = "".match(0)[0]; diff --git a/tests/promises/promises.exp b/tests/promises/promises.exp index 6e13d16621a..03cf3b6733d 100644 --- a/tests/promises/promises.exp +++ b/tests/promises/promises.exp @@ -37,16 +37,16 @@ all.js:19 all.js:24 24: Promise.all(); // Error: expected array instead of undefined (too few arguments) ^^^^^^^^^^^^^ call of method `all` -662: static all>(promises: T): Promise<$TupleMap>; - ^^^^^^^^^^^^^^ property `@@iterator` of $Iterable. Property not found in possibly undefined value. See lib: /core.js:662 +668: static all>(promises: T): Promise<$TupleMap>; + ^^^^^^^^^^^^^^ property `@@iterator` of $Iterable. Property not found in possibly undefined value. See lib: /core.js:668 24: Promise.all(); // Error: expected array instead of undefined (too few arguments) ^^^^^^^^^^^^^ undefined (too few arguments, expected default/rest parameters) all.js:27 27: Promise.all(0); // Error: expected array instead of number ^^^^^^^^^^^^^^ call of method `all` -662: static all>(promises: T): Promise<$TupleMap>; - ^^^^^^^^^^^^^^ property `@@iterator` of $Iterable. Property not found in. See lib: /core.js:662 +668: static all>(promises: T): Promise<$TupleMap>; + ^^^^^^^^^^^^^^ property `@@iterator` of $Iterable. Property not found in. See lib: /core.js:668 27: Promise.all(0); // Error: expected array instead of number ^ number @@ -73,11 +73,11 @@ promise.js:30 31: resolve(0); 32: })); -^ Promise. This type is incompatible with -647: resolve: (result: Promise | R) => void, - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `R` of constructor call. See lib: /core.js:647 +653: resolve: (result: Promise | R) => void, + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `R` of constructor call. See lib: /core.js:653 Member 1: - 647: resolve: (result: Promise | R) => void, - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:647 + 653: resolve: (result: Promise | R) => void, + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:653 Error: 35: var b: string = num; // Error: number ~> string ^^^ number. This type is incompatible with @@ -108,11 +108,11 @@ promise.js:41 42: resolve(0); 43: })); -^ Promise. This type is incompatible with -647: resolve: (result: Promise | R) => void, - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `R` of constructor call. See lib: /core.js:647 +653: resolve: (result: Promise | R) => void, + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `R` of constructor call. See lib: /core.js:653 Member 1: - 647: resolve: (result: Promise | R) => void, - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:647 + 653: resolve: (result: Promise | R) => void, + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:653 Error: 47: var b: string = num; // Error: number ~> string ^^^ number. This type is incompatible with @@ -147,11 +147,11 @@ promise.js:117 promise.js:121 121: Promise.resolve(Promise.resolve(0)).then(function(num) { ^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with -660: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:660 +666: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:666 Member 1: - 660: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:660 + 666: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:666 Error: 123: var b: string = num; // Error: number ~> string ^^^ number. This type is incompatible with @@ -169,11 +169,11 @@ promise.js:121 promise.js:127 127: Promise.resolve(Promise.resolve(Promise.resolve(0))).then(function(num) { ^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with -660: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:660 +666: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:666 Member 1: - 660: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:660 + 666: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:666 Error: 129: var b: string = num; // Error: number ~> string ^^^ number. This type is incompatible with @@ -197,11 +197,11 @@ promise.js:161 promise.js:166 166: .then(function(num) { return Promise.resolve('asdf'); }) ^^^^^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with -652: onFulfill?: (value: R) => Promise | U, - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `U` of call of method `then`. See lib: /core.js:652 +658: onFulfill?: (value: R) => Promise | U, + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `U` of call of method `then`. See lib: /core.js:658 Member 1: - 652: onFulfill?: (value: R) => Promise | U, - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:652 + 658: onFulfill?: (value: R) => Promise | U, + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:658 Error: 169: var b: number = str; // Error: string ~> number ^^^ string. This type is incompatible with @@ -221,11 +221,11 @@ promise.js:166 promise.js:174 174: .then(function(num) { return Promise.resolve(Promise.resolve('asdf')); }) ^^^^^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with -660: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:660 +666: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:666 Member 1: - 660: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:660 + 666: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:666 Error: 177: var b: number = str; // Error: string ~> number ^^^ string. This type is incompatible with @@ -249,11 +249,11 @@ promise.js:201 promise.js:206 206: .catch(function(num) { return Promise.resolve('asdf'); }) ^^^^^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with -657: onReject?: (error: any) => Promise | U - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `U` of call of method `catch`. See lib: /core.js:657 +663: onReject?: (error: any) => Promise | U + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `U` of call of method `catch`. See lib: /core.js:663 Member 1: - 657: onReject?: (error: any) => Promise | U - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:657 + 663: onReject?: (error: any) => Promise | U + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:663 Error: 209: var b: number = str; // Error: string ~> number ^^^ string. This type is incompatible with @@ -273,11 +273,11 @@ promise.js:206 promise.js:214 214: .catch(function(num) { return Promise.resolve(Promise.resolve('asdf')); }) ^^^^^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with -660: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:660 +666: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:666 Member 1: - 660: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:660 + 666: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:666 Error: 217: var b: number = str; // Error: string ~> number ^^^ string. This type is incompatible with @@ -325,16 +325,16 @@ resolve_void.js:3 resolve_void.js:5 5: (Promise.resolve(undefined): Promise); // error ^^^^^^^^^ undefined. This type is incompatible with -660: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:660 +666: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:666 Member 1: - 660: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:660 + 666: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:666 Error: 5: (Promise.resolve(undefined): Promise); // error ^^^^^^^^^ undefined. This type is incompatible with - 660: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^ Promise. See lib: /core.js:660 + 666: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^ Promise. See lib: /core.js:666 Member 2: 5: (Promise.resolve(undefined): Promise); // error ^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `T` of call of method `resolve` diff --git a/tests/symbol/symbol.exp b/tests/symbol/symbol.exp index 27402a4ea88..a10911c6dfd 100644 --- a/tests/symbol/symbol.exp +++ b/tests/symbol/symbol.exp @@ -1,8 +1,8 @@ symbol.js:4 4: var WAT = Symbol('foo', 'bar'); // Error - unused argument ^^^^^ unused function argument - 76: static (value?:any): Symbol; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:76 + 77: static (value?:any): Symbol; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:77 Found 1 error