TypeScript/tests/baselines/reference/contextualTypeArrayReturnType.types

47 lines
2.2 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/contextualTypeArrayReturnType.ts ===
interface IBookStyle {
2015-04-13 23:01:57 +02:00
>IBookStyle : IBookStyle, Symbol(IBookStyle, Decl(contextualTypeArrayReturnType.ts, 0, 0))
2014-08-15 23:33:16 +02:00
initialLeftPageTransforms?: (width: number) => NamedTransform[];
2015-04-13 23:01:57 +02:00
>initialLeftPageTransforms : (width: number) => NamedTransform[], Symbol(initialLeftPageTransforms, Decl(contextualTypeArrayReturnType.ts, 0, 22))
>width : number, Symbol(width, Decl(contextualTypeArrayReturnType.ts, 1, 33))
>NamedTransform : NamedTransform, Symbol(NamedTransform, Decl(contextualTypeArrayReturnType.ts, 2, 1))
2014-08-15 23:33:16 +02:00
}
interface NamedTransform {
2015-04-13 23:01:57 +02:00
>NamedTransform : NamedTransform, Symbol(NamedTransform, Decl(contextualTypeArrayReturnType.ts, 2, 1))
2014-08-15 23:33:16 +02:00
[name: string]: Transform3D;
2015-04-13 23:01:57 +02:00
>name : string, Symbol(name, Decl(contextualTypeArrayReturnType.ts, 5, 5))
>Transform3D : Transform3D, Symbol(Transform3D, Decl(contextualTypeArrayReturnType.ts, 6, 1))
2014-08-15 23:33:16 +02:00
}
interface Transform3D {
2015-04-13 23:01:57 +02:00
>Transform3D : Transform3D, Symbol(Transform3D, Decl(contextualTypeArrayReturnType.ts, 6, 1))
2014-08-15 23:33:16 +02:00
cachedCss: string;
2015-04-13 23:01:57 +02:00
>cachedCss : string, Symbol(cachedCss, Decl(contextualTypeArrayReturnType.ts, 8, 23))
2014-08-15 23:33:16 +02:00
}
var style: IBookStyle = {
2015-04-13 23:01:57 +02:00
>style : IBookStyle, Symbol(style, Decl(contextualTypeArrayReturnType.ts, 12, 3))
>IBookStyle : IBookStyle, Symbol(IBookStyle, Decl(contextualTypeArrayReturnType.ts, 0, 0))
2014-10-13 15:56:58 +02:00
>{ initialLeftPageTransforms: (width: number) => { return [ {'ry': null } ]; }} : { initialLeftPageTransforms: (width: number) => { [x: string]: any; 'ry': any; }[]; }
2014-08-15 23:33:16 +02:00
initialLeftPageTransforms: (width: number) => {
2015-04-13 23:01:57 +02:00
>initialLeftPageTransforms : (width: number) => { [x: string]: any; 'ry': any; }[], Symbol(initialLeftPageTransforms, Decl(contextualTypeArrayReturnType.ts, 12, 25))
2014-10-13 15:56:58 +02:00
>(width: number) => { return [ {'ry': null } ]; } : (width: number) => { [x: string]: any; 'ry': any; }[]
2015-04-13 23:01:57 +02:00
>width : number, Symbol(width, Decl(contextualTypeArrayReturnType.ts, 13, 32))
2014-08-15 23:33:16 +02:00
return [
2014-10-13 15:56:58 +02:00
>[ {'ry': null } ] : { [x: string]: null; 'ry': null; }[]
2014-08-15 23:33:16 +02:00
{'ry': null }
2014-10-13 15:56:58 +02:00
>{'ry': null } : { [x: string]: null; 'ry': null; }
2015-04-13 21:36:11 +02:00
>null : null
2014-08-15 23:33:16 +02:00
];
}
}