Update type baselines
This commit is contained in:
parent
0f9c1adcd8
commit
5b7da99446
|
@ -30,7 +30,7 @@ var r = foo({ a: moduleA });
|
|||
>foo : <T extends { a: IHasVisualizationModel; }>(x: T) => T
|
||||
>{ a: moduleA } : { a: typeof "tests/cases/compiler/aliasUsageInGenericFunction_moduleA"; }
|
||||
>a : typeof "tests/cases/compiler/aliasUsageInGenericFunction_moduleA"
|
||||
>moduleA : moduleA
|
||||
>moduleA : typeof "tests/cases/compiler/aliasUsageInGenericFunction_moduleA"
|
||||
|
||||
var r2 = foo({ a: <IHasVisualizationModel>null });
|
||||
>r2 : { a: IHasVisualizationModel; }
|
||||
|
|
|
@ -19,7 +19,7 @@ var a: { x: typeof moduleA } = { x: moduleA };
|
|||
>moduleA : typeof "tests/cases/compiler/aliasUsageInObjectLiteral_moduleA"
|
||||
>{ x: moduleA } : { x: typeof "tests/cases/compiler/aliasUsageInObjectLiteral_moduleA"; }
|
||||
>x : typeof "tests/cases/compiler/aliasUsageInObjectLiteral_moduleA"
|
||||
>moduleA : moduleA
|
||||
>moduleA : typeof "tests/cases/compiler/aliasUsageInObjectLiteral_moduleA"
|
||||
|
||||
var b: { x: IHasVisualizationModel } = { x: moduleA };
|
||||
>b : { x: IHasVisualizationModel; }
|
||||
|
@ -27,7 +27,7 @@ var b: { x: IHasVisualizationModel } = { x: moduleA };
|
|||
>IHasVisualizationModel : IHasVisualizationModel
|
||||
>{ x: moduleA } : { x: typeof "tests/cases/compiler/aliasUsageInObjectLiteral_moduleA"; }
|
||||
>x : typeof "tests/cases/compiler/aliasUsageInObjectLiteral_moduleA"
|
||||
>moduleA : moduleA
|
||||
>moduleA : typeof "tests/cases/compiler/aliasUsageInObjectLiteral_moduleA"
|
||||
|
||||
var c: { y: { z: IHasVisualizationModel } } = { y: { z: moduleA } };
|
||||
>c : { y: { z: IHasVisualizationModel; }; }
|
||||
|
@ -38,7 +38,7 @@ var c: { y: { z: IHasVisualizationModel } } = { y: { z: moduleA } };
|
|||
>y : { z: typeof "tests/cases/compiler/aliasUsageInObjectLiteral_moduleA"; }
|
||||
>{ z: moduleA } : { z: typeof "tests/cases/compiler/aliasUsageInObjectLiteral_moduleA"; }
|
||||
>z : typeof "tests/cases/compiler/aliasUsageInObjectLiteral_moduleA"
|
||||
>moduleA : moduleA
|
||||
>moduleA : typeof "tests/cases/compiler/aliasUsageInObjectLiteral_moduleA"
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInObjectLiteral_backbone.ts ===
|
||||
export class Model {
|
||||
|
|
|
@ -47,7 +47,7 @@ var e: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null || {
|
|||
>IHasVisualizationModel : IHasVisualizationModel
|
||||
>{ x: moduleA } : { x: typeof "tests/cases/compiler/aliasUsageInOrExpression_moduleA"; }
|
||||
>x : typeof "tests/cases/compiler/aliasUsageInOrExpression_moduleA"
|
||||
>moduleA : moduleA
|
||||
>moduleA : typeof "tests/cases/compiler/aliasUsageInOrExpression_moduleA"
|
||||
|
||||
var f: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null ? { x: moduleA } : null;
|
||||
>f : { x: IHasVisualizationModel; }
|
||||
|
@ -59,7 +59,7 @@ var f: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null ? { x
|
|||
>IHasVisualizationModel : IHasVisualizationModel
|
||||
>{ x: moduleA } : { x: typeof "tests/cases/compiler/aliasUsageInOrExpression_moduleA"; }
|
||||
>x : typeof "tests/cases/compiler/aliasUsageInOrExpression_moduleA"
|
||||
>moduleA : moduleA
|
||||
>moduleA : typeof "tests/cases/compiler/aliasUsageInOrExpression_moduleA"
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInOrExpression_backbone.ts ===
|
||||
export class Model {
|
||||
|
|
|
@ -248,7 +248,7 @@ class f {
|
|||
>y : string
|
||||
>{x: anyObj, y: 'a'} : { x: any; y: string; }
|
||||
>x : any
|
||||
>anyObj : anyObj
|
||||
>anyObj : any
|
||||
>y : string
|
||||
|
||||
var a2 = [ {x: anyObj, y: 'a'}, {x: 0, y: 'a'}, {x: 'a', y: 'a'} ];
|
||||
|
@ -256,7 +256,7 @@ class f {
|
|||
>[ {x: anyObj, y: 'a'}, {x: 0, y: 'a'}, {x: 'a', y: 'a'} ] : { x: any; y: string; }[]
|
||||
>{x: anyObj, y: 'a'} : { x: any; y: string; }
|
||||
>x : any
|
||||
>anyObj : anyObj
|
||||
>anyObj : any
|
||||
>y : string
|
||||
>{x: 0, y: 'a'} : { x: number; y: string; }
|
||||
>x : number
|
||||
|
@ -273,7 +273,7 @@ class f {
|
|||
>y : string
|
||||
>{x: anyObj, y: 'a'} : { x: any; y: string; }
|
||||
>x : any
|
||||
>anyObj : anyObj
|
||||
>anyObj : any
|
||||
>y : string
|
||||
>{x: 'a', y: 'a'} : { x: string; y: string; }
|
||||
>x : string
|
||||
|
|
|
@ -38,7 +38,7 @@ var obj: { [s: string]: Contextual } = { s: e }; // { s: Ellement; [s: string]:
|
|||
>Contextual : Contextual
|
||||
>{ s: e } : { [x: string]: Ellement; s: Ellement; }
|
||||
>s : Ellement
|
||||
>e : e
|
||||
>e : Ellement
|
||||
|
||||
var conditional: Contextual = null ? e : e; // Ellement
|
||||
>conditional : Contextual
|
||||
|
|
|
@ -111,7 +111,7 @@ function foo8(x: number) {
|
|||
return { x: x };
|
||||
>{ x: x } : { x: number; }
|
||||
>x : number
|
||||
>x : x
|
||||
>x : number
|
||||
}
|
||||
var r8 = foo8(1);
|
||||
>r8 : { x: number; }
|
||||
|
|
|
@ -8,7 +8,7 @@ var obj: { [s: string]: number } = { p: "", q: x };
|
|||
>{ p: "", q: x } : { [x: string]: any; p: string; q: any; }
|
||||
>p : string
|
||||
>q : any
|
||||
>x : x
|
||||
>x : any
|
||||
|
||||
var arr: number[] = ["", x];
|
||||
>arr : number[]
|
||||
|
|
|
@ -30,7 +30,7 @@ module M {
|
|||
>f : (y: Y) => void
|
||||
>{x:a} : { x: X; }
|
||||
>x : X
|
||||
>a : a
|
||||
>a : X
|
||||
|
||||
var b:XX;
|
||||
>b : XX
|
||||
|
@ -41,7 +41,7 @@ module M {
|
|||
>f : (y: Y) => void
|
||||
>{x:b} : { x: XX; }
|
||||
>x : XX
|
||||
>b : b
|
||||
>b : XX
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ var d = {
|
|||
>m1 : { m: typeof m1; }
|
||||
>{ m: m1 } : { m: typeof m1; }
|
||||
>m : typeof m1
|
||||
>m1 : m1
|
||||
>m1 : typeof m1
|
||||
|
||||
m2: { c: m1.c },
|
||||
>m2 : { c: typeof c; }
|
||||
|
|
|
@ -40,14 +40,14 @@ var b = {
|
|||
|
||||
m1: m1
|
||||
>m1 : typeof m1
|
||||
>m1 : m1
|
||||
>m1 : typeof m1
|
||||
|
||||
};
|
||||
var c = { m1: m1 };
|
||||
>c : { m1: typeof m1; }
|
||||
>{ m1: m1 } : { m1: typeof m1; }
|
||||
>m1 : typeof m1
|
||||
>m1 : m1
|
||||
>m1 : typeof m1
|
||||
|
||||
var d = {
|
||||
>d : { m: { mod: typeof m1; }; mc: { cl: typeof c; }; me: { en: typeof e; }; mh: e; }
|
||||
|
@ -62,7 +62,7 @@ var d = {
|
|||
>m : { mod: typeof m1; }
|
||||
>{ mod: m1 } : { mod: typeof m1; }
|
||||
>mod : typeof m1
|
||||
>m1 : m1
|
||||
>m1 : typeof m1
|
||||
|
||||
mc: { cl: m1.c },
|
||||
>mc : { cl: typeof c; }
|
||||
|
|
|
@ -31,10 +31,10 @@ var moduleMap: { [key: string]: IHasVisualizationModel } = {
|
|||
} : { [x: string]: IHasVisualizationModel; "moduleA": typeof "tests/cases/compiler/extendingClassFromAliasAndUsageInIndexer_moduleA"; "moduleB": typeof "tests/cases/compiler/extendingClassFromAliasAndUsageInIndexer_moduleB"; }
|
||||
|
||||
"moduleA": moduleA,
|
||||
>moduleA : moduleA
|
||||
>moduleA : typeof "tests/cases/compiler/extendingClassFromAliasAndUsageInIndexer_moduleA"
|
||||
|
||||
"moduleB": moduleB
|
||||
>moduleB : moduleB
|
||||
>moduleB : typeof "tests/cases/compiler/extendingClassFromAliasAndUsageInIndexer_moduleB"
|
||||
|
||||
};
|
||||
var moduleName: string;
|
||||
|
|
|
@ -35,9 +35,9 @@ var r3 = foo({ bar: foo, baz: foo }); // T = any
|
|||
>foo : <T>(x: { bar: T; baz: T; }) => { bar: T; baz: T; }
|
||||
>{ bar: foo, baz: foo } : { bar: <T>(x: { bar: T; baz: T; }) => { bar: T; baz: T; }; baz: <T>(x: { bar: T; baz: T; }) => { bar: T; baz: T; }; }
|
||||
>bar : <T>(x: { bar: T; baz: T; }) => { bar: T; baz: T; }
|
||||
>foo : foo
|
||||
>foo : <T>(x: { bar: T; baz: T; }) => { bar: T; baz: T; }
|
||||
>baz : <T>(x: { bar: T; baz: T; }) => { bar: T; baz: T; }
|
||||
>foo : foo
|
||||
>foo : <T>(x: { bar: T; baz: T; }) => { bar: T; baz: T; }
|
||||
|
||||
var r4 = foo<Object>({ bar: 1, baz: '' }); // T = Object
|
||||
>r4 : { bar: Object; baz: Object; }
|
||||
|
|
|
@ -9,7 +9,7 @@ class X<T>
|
|||
>T : T
|
||||
>{ a: t } : { a: T; }
|
||||
>a : T
|
||||
>t : t
|
||||
>t : T
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -35,11 +35,11 @@ Object.defineProperty({}, "0", <PropertyDescriptor>({
|
|||
|
||||
get: getFunc,
|
||||
>get : () => any
|
||||
>getFunc : getFunc
|
||||
>getFunc : () => any
|
||||
|
||||
set: setFunc,
|
||||
>set : (v: any) => void
|
||||
>setFunc : setFunc
|
||||
>setFunc : (v: any) => void
|
||||
|
||||
configurable: true
|
||||
>configurable : boolean
|
||||
|
|
|
@ -121,24 +121,24 @@ module Derived {
|
|||
>[{ foo: base, basear: derived }, { foo: base }] : { foo: Base; }[]
|
||||
>{ foo: base, basear: derived } : { foo: Base; basear: Derived; }
|
||||
>foo : Base
|
||||
>base : base
|
||||
>base : Base
|
||||
>basear : Derived
|
||||
>derived : derived
|
||||
>derived : Derived
|
||||
>{ foo: base } : { foo: Base; }
|
||||
>foo : Base
|
||||
>base : base
|
||||
>base : Base
|
||||
|
||||
var i = [{ foo: base, basear: derived }, { foo: derived }]; // {foo: Derived}[]
|
||||
>i : {}[]
|
||||
>[{ foo: base, basear: derived }, { foo: derived }] : {}[]
|
||||
>{ foo: base, basear: derived } : { foo: Base; basear: Derived; }
|
||||
>foo : Base
|
||||
>base : base
|
||||
>base : Base
|
||||
>basear : Derived
|
||||
>derived : derived
|
||||
>derived : Derived
|
||||
>{ foo: derived } : { foo: Derived; }
|
||||
>foo : Derived
|
||||
>derived : derived
|
||||
>derived : Derived
|
||||
|
||||
var j = [() => base, () => derived]; // { {}: Base }
|
||||
>j : { (): Base; }[]
|
||||
|
|
|
@ -26,5 +26,5 @@ var s = map("", () => { return { x: identity }; });
|
|||
>() => { return { x: identity }; } : () => { x: <V>(y: V) => V; }
|
||||
>{ x: identity } : { x: <V>(y: V) => V; }
|
||||
>x : <V>(y: V) => V
|
||||
>identity : identity
|
||||
>identity : <V>(y: V) => V
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ var dottedIdentity = { x: identity };
|
|||
>dottedIdentity : { x: <V>(y: V) => V; }
|
||||
>{ x: identity } : { x: <V>(y: V) => V; }
|
||||
>x : <V>(y: V) => V
|
||||
>identity : identity
|
||||
>identity : <V>(y: V) => V
|
||||
|
||||
s = map("", dottedIdentity.x);
|
||||
>s = map("", dottedIdentity.x) : string
|
||||
|
|
|
@ -146,11 +146,11 @@ var a: Foo = {
|
|||
|
||||
l: f1,
|
||||
>l : () => void
|
||||
>f1 : f1
|
||||
>f1 : () => void
|
||||
|
||||
m: M,
|
||||
>m : typeof M
|
||||
>M : M
|
||||
>M : typeof M
|
||||
|
||||
n: {},
|
||||
>n : {}
|
||||
|
|
|
@ -17,9 +17,9 @@ function point(x: number, y: number): Point {
|
|||
return { x: x, y: y };
|
||||
>{ x: x, y: y } : { x: number; y: number; }
|
||||
>x : number
|
||||
>x : x
|
||||
>x : number
|
||||
>y : number
|
||||
>y : number
|
||||
>y : y
|
||||
}
|
||||
module point {
|
||||
>point : typeof point
|
||||
|
|
|
@ -27,7 +27,7 @@ var Math = {
|
|||
|
||||
Adder:Adder
|
||||
>Adder : typeof Adder
|
||||
>Adder : Adder
|
||||
>Adder : typeof Adder
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -33,22 +33,22 @@ var o1: { [s: string]: A;[n: number]: B; } = { x: a, 0: b }; // string indexer i
|
|||
>B : B
|
||||
>{ x: a, 0: b } : { [x: string]: A; [x: number]: B; 0: B; x: A; }
|
||||
>x : A
|
||||
>a : a
|
||||
>b : b
|
||||
>a : A
|
||||
>b : B
|
||||
|
||||
o1 = { x: b, 0: c }; // both indexers are any
|
||||
>o1 = { x: b, 0: c } : { [x: string]: any; [x: number]: any; 0: any; x: B; }
|
||||
>o1 : { [x: string]: A; [x: number]: B; }
|
||||
>{ x: b, 0: c } : { [x: string]: any; [x: number]: any; 0: any; x: B; }
|
||||
>x : B
|
||||
>b : b
|
||||
>c : c
|
||||
>b : B
|
||||
>c : any
|
||||
|
||||
o1 = { x: c, 0: b }; // string indexer is any, number indexer is B
|
||||
>o1 = { x: c, 0: b } : { [x: string]: any; [x: number]: B; 0: B; x: any; }
|
||||
>o1 : { [x: string]: A; [x: number]: B; }
|
||||
>{ x: c, 0: b } : { [x: string]: any; [x: number]: B; 0: B; x: any; }
|
||||
>x : any
|
||||
>c : c
|
||||
>b : b
|
||||
>c : any
|
||||
>b : B
|
||||
|
||||
|
|
|
@ -373,7 +373,7 @@ var b = {
|
|||
>/123/ : RegExp
|
||||
|
||||
"-1": Date
|
||||
>Date : Date
|
||||
>Date : { (): string; new (): Date; new (value: number): Date; new (value: string): Date; new (year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date; prototype: Date; parse(s: string): number; UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number; now(): number; }
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ var catThing = {
|
|||
|
||||
barry: cat
|
||||
>barry : Cat<IKitty>
|
||||
>cat : cat
|
||||
>cat : Cat<IKitty>
|
||||
|
||||
};
|
||||
var catBag = new CatBag(catThing);
|
||||
|
|
|
@ -3,5 +3,5 @@ var a = { f: a };
|
|||
>a : any
|
||||
>{ f: a } : { f: any; }
|
||||
>f : any
|
||||
>a : a
|
||||
>a : any
|
||||
|
||||
|
|
|
@ -14,5 +14,5 @@
|
|||
>({ X: p }) : { X: any; }
|
||||
>{ X: p } : { X: any; }
|
||||
>X : any
|
||||
>p : p
|
||||
>p : any
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ function suggest(){
|
|||
>push : any
|
||||
>{text:keyword, type:"keyword"} : { text: string; type: string; }
|
||||
>text : string
|
||||
>keyword : keyword
|
||||
>keyword : string
|
||||
>type : string
|
||||
|
||||
});
|
||||
|
|
|
@ -761,7 +761,7 @@ _.each(notes, (note) => note.asyncSave({ success: renderNotes }));
|
|||
>asyncSave : any
|
||||
>{ success: renderNotes } : { success: () => void; }
|
||||
>success : () => void
|
||||
>renderNotes : renderNotes
|
||||
>renderNotes : () => void
|
||||
|
||||
var hello = function (name) { return "hello: " + name; };
|
||||
>hello : (name: any) => string
|
||||
|
|
Loading…
Reference in a new issue