Home
last modified time | relevance | path

Searched defs:declare (Results 1 – 25 of 146) sorted by relevance

123456

/third_party/typescript/tests/baselines/reference/
DderivedUninitializedPropertyDeclaration.js10 declare property: any; // ok because it's implicitly initialised field in BD
13 declare property!: any; // ! is not allowed, this is an ambient declaration field in BDBang
16 declare m() { return 2 } // not allowed on methods field in BOther
17 declare nonce: any; // ok, even though it's not in the base field in BOther
18 declare property = 'y' // initialiser not allowed with declare field in BOther
21 declare nonce: any; // ok, even though there's no base field in U
31 declare p: 'bye'; // ok field in DD
77 declare a: number; field in M
DdeclareIdentifierAsBeginningOfStatementExpression01.js5 var declare: any; variable
15 var declare; variable
DasiPreventsParsingAsAmbientExternalModule01.js2 var declare: number; variable
11 var declare; variable
DasiPreventsParsingAsInterface04.js2 var declare: boolean, interface: number, I: string; variable
10 var declare, interface, I; variable
DdecoratorInAmbientContext.js6 @decorator declare a: number; field in Foo
7 @decorator declare [b]: number; field in Foo
DmappedTypeGenericInstantiationPreservesHomomorphism.js4 export declare function usePrivateType<T extends unknown[]>(...args: T): PrivateMapped<T[any]>; variable
32 export declare function usePrivateType<T extends unknown[]>(...args: T): PrivateMapped<T[any]>; variable
DmappedTypeConstraints2.js82 declare function f1<K extends string>(obj: Mapped1<K>, key: K): void; variable
88 declare function f2<K extends string>(obj: Mapped2<K>, key: `get${K}`): void; variable
94 declare function f3<K extends string>(obj: Mapped3<K>, key: Uppercase<K>): void; variable
DdynamicNames.js19 export declare type T3 = { variable
69 declare type T11 = { variable
87 declare type T15 = { variable
234 export declare type T3 = { variable
DmappedTypeRelationships.js333 declare function f2<T, K extends keyof T>(x: T, k: K): T[K]; variable
350 declare function f30<T>(x: T, y: Partial<T>): void; variable
360 declare function f50<T extends ItemMap>(obj: T, key: keyof T): string; variable
368 declare function f60<U>(x: T1<U>, y: T2<U>): void; variable
DdeclarationEmitReexportedSymlinkReference2.js6 export declare type A = { variable
9 export declare type B = { variable
DdeclarationEmitReexportedSymlinkReference3.js6 export declare type A = { variable
9 export declare type B = { variable
DdeclarationEmitReexportedSymlinkReference.js6 export declare type A = { variable
9 export declare type B = { variable
DdeclFileWithErrorsInInputDeclarationFile.js4 declare module M { variable
/third_party/typescript/tests/baselines/reference/tsc/declarationEmit/
Dwhen-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js36 export declare type ActionCreator<Payload> = { variable
64 export declare type ActionCreator<Payload> = { variable
Dwhen-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js36 export declare type ActionCreator<Payload> = { variable
64 export declare type ActionCreator<Payload> = { variable
Dwhen-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js33 export declare type ActionCreator<Payload> = { variable
63 export declare type ActionCreator<Payload> = { variable
Dwhen-same-version-is-referenced-through-source-and-another-symlinked-package.js33 export declare type ActionCreator<Payload> = { variable
63 export declare type ActionCreator<Payload> = { variable
Dwhen-pkg-references-sibling-package-through-indirect-symlink-moduleCaseChange.js6 export declare type A = { variable
9 export declare type B = { variable
Dwhen-pkg-references-sibling-package-through-indirect-symlink.js6 export declare type A = { variable
9 export declare type B = { variable
/third_party/typescript/tests/cases/compiler/
DesNextWeakRefs_IterableWeakMap.ts16 declare readonly [Symbol.toStringTag]: "IterableWeakMap"; property in IterableWeakMap
68 declare [Symbol.iterator]: this["entries"]; property in IterableWeakMap
/third_party/typescript/tests/cases/conformance/es6/templates/
DtaggedTemplateStringsWithTagNamedDeclareES6.ts3 function declare(x: any, ...ys: any[]) { function
DtaggedTemplateStringsWithTagNamedDeclare.ts3 function declare(x: any, ...ys: any[]) { function
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/basic_concepts/names/reserved_words/special_mean_but_valid_identifier/
Ddeclare_is_valid_identifier_2.ts24 function declare(): string { function
Ddeclare_is_valid_identifier_1.ts24 var declare: string = "declare"; variable
/third_party/typescript/tests/cases/conformance/externalModules/
DasiPreventsParsingAsAmbientExternalModule02.ts2 var declare: number; variable

123456