/third_party/typescript/tests/cases/fourslash/ |
D | completionEntryForClassMembers2.ts | 191 const validInstanceMembersOfBaseClassB: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryObj… 195 const validStaticMembersOfBaseClassB: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryObjec… 198 const privateMembersOfBaseClassB: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryObject> =… 201 const protectedPropertiesOfBaseClassB0: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryObj… 205 const publicPropertiesOfBaseClassB0: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryObject… 209 const validInstanceMembersOfBaseClassB0: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryOb… 210 const validInstanceMembersOfBaseClassB0_2 : ReadonlyArray<FourSlashInterface.ExpectedCompletionEntr… 216 const validStaticMembersOfBaseClassB0: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryObje… 220 const privateMembersOfBaseClassB0: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryObject> … 224 const membersOfI: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryObject> = [ [all …]
|
D | fourslash.ts | 101 …function flatMap<T, U>(array: ReadonlyArray<T>, mapfn: (x: T, i: number) => U | ReadonlyArray<U> |… 194 … eachMarker(markers: ReadonlyArray<string>, action: (marker: Marker, index: number) => void): void; 239 codeFixAvailable(options?: ReadonlyArray<VerifyCodeFixAvailableOptions> | string): void; 303 …referenceGroups(starts: ArrayOrSingle<string> | ArrayOrSingle<Range>, parts: ReadonlyArray<Referen… 322 getEmitOutput(expectedOutputFiles: ReadonlyArray<string>): void; 385 getSyntacticDiagnostics(expected: ReadonlyArray<Diagnostic>): void; 386 getSemanticDiagnostics(expected: ReadonlyArray<Diagnostic>): void; 387 getSuggestionDiagnostics(expected: ReadonlyArray<Diagnostic>): void; 593 readonly ranges: ReadonlyArray<Range>; 608 filesToSearch?: ReadonlyArray<string>; [all …]
|
D | completionListWithModulesInsideModuleScope.ts | 239 readonly moreIncludes?: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntry>; 240 readonly moreExcludes?: ReadonlyArray<string>; 246 const valueInModule: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntry> = [ 256 const typeInModule: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntry> = [ 261 const valueOrTypeInModule: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntry> = [ 342 const values: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntry> = [ 348 const types: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntry> = [ 392 const values: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntry> = [ 398 const types: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntry> = [ 419 const values: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntry> = [ [all …]
|
D | jsFileJsdocTypedefTagTypeExpressionCompletion.ts | 19 const types: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryObject> = [ 22 const values: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryObject> = [ 26 const typeMembers: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryObject> = [ 31 function warnings(entries: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryObject>): Readon…
|
D | jsFileJsdocTypedefTagTypeExpressionCompletion2.ts | 24 function getCompletions(nonWarnings: ReadonlyArray<string>): ReadonlyArray<FourSlashInterface.Expec… 25 const withKinds: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryObject> = [
|
D | commentsCommentParsing.ts | 260 const addTags: ReadonlyArray<FourSlashInterface.JSDocTagInfo> = [ 291 const multiplyTags: ReadonlyArray<FourSlashInterface.JSDocTagInfo> = [ 380 const subtractTags: ReadonlyArray<FourSlashInterface.JSDocTagInfo> = [ 433 const divideTags: ReadonlyArray<FourSlashInterface.JSDocTagInfo> = [ 454 const concatTags: ReadonlyArray<FourSlashInterface.JSDocTagInfo> = [ 488 const jsdocTestTags: ReadonlyArray<FourSlashInterface.JSDocTagInfo> = [ 537 const alignmentTags: ReadonlyArray<FourSlashInterface.JSDocTagInfo> = [
|
/third_party/typescript/tests/baselines/reference/ |
D | arrayFlatMap.symbols | 5 const readonlyArray: ReadonlyArray<number> = []; 7 >ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, -… 9 array.flatMap((): ReadonlyArray<number> => []); // ok 13 >ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, -… 15 readonlyArray.flatMap((): ReadonlyArray<number> => []); // ok 16 >readonlyArray.flatMap : Symbol(ReadonlyArray.flatMap, Decl(lib.es2019.array.d.ts, --, --)) 18 >flatMap : Symbol(ReadonlyArray.flatMap, Decl(lib.es2019.array.d.ts, --, --)) 19 >ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, -…
|
D | arrayFlatMap.types | 6 const readonlyArray: ReadonlyArray<number> = []; 10 array.flatMap((): ReadonlyArray<number> => []); // ok 11 >array.flatMap((): ReadonlyArray<number> => []) : number[] 15 >(): ReadonlyArray<number> => [] : () => ReadonlyArray<number> 18 readonlyArray.flatMap((): ReadonlyArray<number> => []); // ok 19 >readonlyArray.flatMap((): ReadonlyArray<number> => []) : number[] 23 >(): ReadonlyArray<number> => [] : () => ReadonlyArray<number>
|
D | bivariantInferences.symbols | 8 equalsShallow<T>(this: ReadonlyArray<T>, other: ReadonlyArray<T>): boolean; 12 >ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) 15 >ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --))
|
D | arrayOfSubtypeIsAssignableToReadonlyArray.symbols | 36 declare var rra: ReadonlyArray<A>; 38 >ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) 41 declare var rrb: ReadonlyArray<B>; 43 >ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) 50 rrb = arb; // OK, Array<B> is assignable to ReadonlyArray<A> 66 rra = crb; // OK, C<B> is assignable to ReadonlyArray<A>
|
D | mappedTypesArraysTuples.js | 12 type T13 = Boxified<ReadonlyArray<string>>; 13 type T14 = Partial<ReadonlyArray<string>>; 14 type T15 = Required<ReadonlyArray<string>>; 19 type T23 = Boxified<ReadonlyArray<string | undefined>>; 20 type T24 = Partial<ReadonlyArray<string | undefined>>; 21 type T25 = Required<ReadonlyArray<string | undefined>>; 29 type T40 = Boxified<A | A[] | ReadonlyArray<A> | [A, B] | string | string[]>; 140 declare type T13 = Boxified<ReadonlyArray<string>>; 141 declare type T14 = Partial<ReadonlyArray<string>>; 142 declare type T15 = Required<ReadonlyArray<string>>; [all …]
|
D | arrayFlatMap.js | 3 const readonlyArray: ReadonlyArray<number> = []; 4 array.flatMap((): ReadonlyArray<number> => []); // ok 5 readonlyArray.flatMap((): ReadonlyArray<number> => []); // ok
|
D | arrayFind.symbols | 22 const readonlyArrayOfStringsNumbersAndBooleans = arrayOfStringsNumbersAndBooleans as ReadonlyArray<… 25 >ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, -… 29 >readonlyArrayOfStringsNumbersAndBooleans.find : Symbol(ReadonlyArray.find, Decl(lib.es2015.core.d.… 31 >find : Symbol(ReadonlyArray.find, Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.core.d.ts, -…
|
D | bivariantInferences.types | 5 equalsShallow<T>(this: ReadonlyArray<T>, other: ReadonlyArray<T>): boolean; 6 >equalsShallow : <T>(this: ReadonlyArray<T>, other: ReadonlyArray<T>) => boolean
|
D | mappedTypesArraysTuples.symbols | 41 type T13 = Boxified<ReadonlyArray<string>>; 44 >ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) 46 type T14 = Partial<ReadonlyArray<string>>; 49 >ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) 51 type T15 = Required<ReadonlyArray<string>>; 54 >ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) 68 type T23 = Boxified<ReadonlyArray<string | undefined>>; 71 >ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) 73 type T24 = Partial<ReadonlyArray<string | undefined>>; 76 >ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --)) [all …]
|
D | arrayOfSubtypeIsAssignableToReadonlyArray.types | 28 declare var rra: ReadonlyArray<A>; 31 declare var rrb: ReadonlyArray<B>; 39 rrb = arb; // OK, Array<B> is assignable to ReadonlyArray<A> 59 rra = crb; // OK, C<B> is assignable to ReadonlyArray<A>
|
D | arrayOfSubtypeIsAssignableToReadonlyArray.errors.txt | 17 declare var rra: ReadonlyArray<A>; 18 declare var rrb: ReadonlyArray<B>; 20 rrb = arb; // OK, Array<B> is assignable to ReadonlyArray<A> 29 rra = crb; // OK, C<B> is assignable to ReadonlyArray<A>
|
D | doNotInferUnrelatedTypes.symbols | 3 declare function dearray<T>(ara: ReadonlyArray<T>): T; 7 >ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --))
|
/third_party/typescript_eslint/packages/eslint-plugin/docs/rules/ |
D | array-type.md | 40 const y: ReadonlyArray<string> = ['a', 'b']; 52 Always use `Array<T>` or `ReadonlyArray<T>` for all array types. 65 const y: ReadonlyArray<string> = ['a', 'b']; 71 Use `Array<T>` or `ReadonlyArray<T>` for all other types (union types, intersection types, object t… 81 const f: ReadonlyArray<string> = ['a', 'b']; 103 … | `(Foo & Bar)[]` | `readonly number[]` | `ReadonlyArray<Foo & Bar>` … 104 …umber[]` | `(Foo & Bar)[]` | `ReadonlyArray<number>` | `ReadonlyArr… 105 … | `Array<Foo & Bar>` | `readonly number[]` | `ReadonlyArray<Foo & Bar>` … 107 … | `Array<Foo & Bar>` | `readonly number[]` | `ReadonlyArray<Foo & Bar>` … 108 …umber[]` | `Array<Foo & Bar>` | `ReadonlyArray<number>` | `ReadonlyArr… [all …]
|
/third_party/typescript_eslint/packages/typescript-estree/src/create-program/ |
D | WatchCompilerHostOfConfigFile.ts | 11 extensions?: ReadonlyArray<string>, 12 exclude?: ReadonlyArray<string>, 13 include?: ReadonlyArray<string>, 22 extensions?: ReadonlyArray<string>, 23 exclude?: ReadonlyArray<string>, 24 include?: ReadonlyArray<string>,
|
/third_party/typescript/tests/cases/conformance/types/mapped/ |
D | mappedTypesArraysTuples.ts | 14 type T13 = Boxified<ReadonlyArray<string>>; 15 type T14 = Partial<ReadonlyArray<string>>; 16 type T15 = Required<ReadonlyArray<string>>; 21 type T23 = Boxified<ReadonlyArray<string | undefined>>; 22 type T24 = Partial<ReadonlyArray<string | undefined>>; 23 type T25 = Required<ReadonlyArray<string | undefined>>; 31 type T40 = Boxified<A | A[] | ReadonlyArray<A> | [A, B] | string | string[]>;
|
/third_party/typescript/src/lib/ |
D | es2019.array.d.ts | 3 "recur": Arr extends ReadonlyArray<infer InnerArr> 8 interface ReadonlyArray<T> { interface 21 callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>, 51 callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
|
/third_party/typescript/lib/ |
D | lib.es2019.array.d.ts | 23 "recur": Arr extends ReadonlyArray<infer InnerArr> 28 interface ReadonlyArray<T> { interface 41 callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>, 71 callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
|
/third_party/typescript/tests/cases/compiler/ |
D | arrayFlatMap.ts | 4 const readonlyArray: ReadonlyArray<number> = []; 5 array.flatMap((): ReadonlyArray<number> => []); // ok 6 readonlyArray.flatMap((): ReadonlyArray<number> => []); // ok
|
D | specedNoStackBlown.ts | 19 export type SpecFunction<INPUT, ROOTINPUT = any> = [INPUT] extends [ReadonlyArray<infer U>] 20 ? (value: INPUT) => ReadonlyArray<SpecArray<U, ROOTINPUT>> 27 export type SpecValue<INPUT, ROOTINPUT = any> = [INPUT] extends [ReadonlyArray<any>]
|