67 lines
2.4 KiB
Plaintext
67 lines
2.4 KiB
Plaintext
=== tests/cases/compiler/declFileIndexSignatures_0.ts ===
|
|
|
|
export interface IStringIndexSignature {
|
|
>IStringIndexSignature : Symbol(IStringIndexSignature, Decl(declFileIndexSignatures_0.ts, 0, 0))
|
|
|
|
[s: string]: string;
|
|
>s : Symbol(s, Decl(declFileIndexSignatures_0.ts, 2, 5))
|
|
}
|
|
export interface INumberIndexSignature {
|
|
>INumberIndexSignature : Symbol(INumberIndexSignature, Decl(declFileIndexSignatures_0.ts, 3, 1))
|
|
|
|
[n: number]: number;
|
|
>n : Symbol(n, Decl(declFileIndexSignatures_0.ts, 5, 5))
|
|
}
|
|
|
|
export interface IBothIndexSignature {
|
|
>IBothIndexSignature : Symbol(IBothIndexSignature, Decl(declFileIndexSignatures_0.ts, 6, 1))
|
|
|
|
[s: string]: any;
|
|
>s : Symbol(s, Decl(declFileIndexSignatures_0.ts, 9, 5))
|
|
|
|
[n: number]: number;
|
|
>n : Symbol(n, Decl(declFileIndexSignatures_0.ts, 10, 5))
|
|
}
|
|
|
|
export interface IIndexSignatureWithTypeParameter<T> {
|
|
>IIndexSignatureWithTypeParameter : Symbol(IIndexSignatureWithTypeParameter, Decl(declFileIndexSignatures_0.ts, 11, 1))
|
|
>T : Symbol(T, Decl(declFileIndexSignatures_0.ts, 13, 50))
|
|
|
|
[a: string]: T;
|
|
>a : Symbol(a, Decl(declFileIndexSignatures_0.ts, 14, 5))
|
|
>T : Symbol(T, Decl(declFileIndexSignatures_0.ts, 13, 50))
|
|
}
|
|
|
|
=== tests/cases/compiler/declFileIndexSignatures_1.ts ===
|
|
interface IGlobalStringIndexSignature {
|
|
>IGlobalStringIndexSignature : Symbol(IGlobalStringIndexSignature, Decl(declFileIndexSignatures_1.ts, 0, 0))
|
|
|
|
[s: string]: string;
|
|
>s : Symbol(s, Decl(declFileIndexSignatures_1.ts, 1, 5))
|
|
}
|
|
interface IGlobalNumberIndexSignature {
|
|
>IGlobalNumberIndexSignature : Symbol(IGlobalNumberIndexSignature, Decl(declFileIndexSignatures_1.ts, 2, 1))
|
|
|
|
[n: number]: number;
|
|
>n : Symbol(n, Decl(declFileIndexSignatures_1.ts, 4, 5))
|
|
}
|
|
|
|
interface IGlobalBothIndexSignature {
|
|
>IGlobalBothIndexSignature : Symbol(IGlobalBothIndexSignature, Decl(declFileIndexSignatures_1.ts, 5, 1))
|
|
|
|
[s: string]: any;
|
|
>s : Symbol(s, Decl(declFileIndexSignatures_1.ts, 8, 5))
|
|
|
|
[n: number]: number;
|
|
>n : Symbol(n, Decl(declFileIndexSignatures_1.ts, 9, 5))
|
|
}
|
|
|
|
interface IGlobalIndexSignatureWithTypeParameter<T> {
|
|
>IGlobalIndexSignatureWithTypeParameter : Symbol(IGlobalIndexSignatureWithTypeParameter, Decl(declFileIndexSignatures_1.ts, 10, 1))
|
|
>T : Symbol(T, Decl(declFileIndexSignatures_1.ts, 12, 49))
|
|
|
|
[a: string]: T;
|
|
>a : Symbol(a, Decl(declFileIndexSignatures_1.ts, 13, 5))
|
|
>T : Symbol(T, Decl(declFileIndexSignatures_1.ts, 12, 49))
|
|
}
|