Home
last modified time | relevance | path

Searched refs:ReadonlyArray (Results 1 – 25 of 297) sorted by relevance

12345678910>>...12

/third_party/typescript/tests/cases/fourslash/
DcompletionEntryForClassMembers2.ts191 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 …]
Dfourslash.ts101 …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 …]
DcompletionListWithModulesInsideModuleScope.ts239 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 …]
DjsFileJsdocTypedefTagTypeExpressionCompletion.ts19 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…
DjsFileJsdocTypedefTagTypeExpressionCompletion2.ts24 function getCompletions(nonWarnings: ReadonlyArray<string>): ReadonlyArray<FourSlashInterface.Expec…
25 const withKinds: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntryObject> = [
DcommentsCommentParsing.ts260 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/
DarrayFlatMap.symbols5 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, --, -…
DarrayFlatMap.types6 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>
DbivariantInferences.symbols8 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, --, --))
DarrayOfSubtypeIsAssignableToReadonlyArray.symbols36 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>
DmappedTypesArraysTuples.js12 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 …]
DarrayFlatMap.js3 const readonlyArray: ReadonlyArray<number> = [];
4 array.flatMap((): ReadonlyArray<number> => []); // ok
5 readonlyArray.flatMap((): ReadonlyArray<number> => []); // ok
DarrayFind.symbols22 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, -…
DbivariantInferences.types5 equalsShallow<T>(this: ReadonlyArray<T>, other: ReadonlyArray<T>): boolean;
6 >equalsShallow : <T>(this: ReadonlyArray<T>, other: ReadonlyArray<T>) => boolean
DmappedTypesArraysTuples.symbols41 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 …]
DarrayOfSubtypeIsAssignableToReadonlyArray.types28 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>
DarrayOfSubtypeIsAssignableToReadonlyArray.errors.txt17 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>
DdoNotInferUnrelatedTypes.symbols3 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/
Darray-type.md40 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/
DWatchCompilerHostOfConfigFile.ts11 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/
DmappedTypesArraysTuples.ts14 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/
Des2019.array.d.ts3 "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/
Dlib.es2019.array.d.ts23 "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/
DarrayFlatMap.ts4 const readonlyArray: ReadonlyArray<number> = [];
5 array.flatMap((): ReadonlyArray<number> => []); // ok
6 readonlyArray.flatMap((): ReadonlyArray<number> => []); // ok
DspecedNoStackBlown.ts19 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>]

12345678910>>...12