Skip to content

Commit df98d9c

Browse files
committed
Accept new baselines
1 parent 6e0274a commit df98d9c

15 files changed

+56
-51
lines changed

tests/baselines/reference/checkExportsObjectAssignPrototypeProperty.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ function Person(name) {
105105

106106
this.name = name;
107107
>this.name = name : string
108-
>this.name : string
108+
>this.name : any
109109
>this : this
110-
>name : string
110+
>name : any
111111
>name : string
112112
}
113113
Person.prototype.describe = function () {

tests/baselines/reference/classCanExtendConstructorFunction.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ function Wagon(numberOxen) {
99

1010
this.numberOxen = numberOxen
1111
>this.numberOxen = numberOxen : number
12-
>this.numberOxen : number
12+
>this.numberOxen : any
1313
>this : this
14-
>numberOxen : number
14+
>numberOxen : any
1515
>numberOxen : number
1616
}
1717
/** @param {Wagon[]=} wagons */

tests/baselines/reference/constructorFunctions.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ function C6() {
143143

144144
this.functions = [x => x, x => x + 1, x => x - 1]
145145
>this.functions = [x => x, x => x + 1, x => x - 1] : ((x: any) => any)[]
146-
>this.functions : ((x: any) => any)[]
146+
>this.functions : any
147147
>this : this
148-
>functions : ((x: any) => any)[]
148+
>functions : any
149149
>[x => x, x => x + 1, x => x - 1] : ((x: any) => any)[]
150150
>x => x : (x: any) => any
151151
>x : any

tests/baselines/reference/constructorFunctionsStrict.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ var j = new A(2)
8585

8686
k.x === j.x
8787
>k.x === j.x : boolean
88-
>k.x : number
88+
>k.x : number | undefined
8989
>k : A
90-
>x : number
91-
>j.x : number
90+
>x : number | undefined
91+
>j.x : number | undefined
9292
>j : A
93-
>x : number
93+
>x : number | undefined
9494

tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ module.exports.MyClass = function() {
1111

1212
this.x = 1
1313
>this.x = 1 : 1
14-
>this.x : number
14+
>this.x : any
1515
>this : this
16-
>x : number
16+
>x : any
1717
>1 : 1
1818
}
1919
module.exports.MyClass.prototype = {

tests/baselines/reference/jsdocFunctionType.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ function D(n) {
9292

9393
this.length = n;
9494
>this.length = n : number
95-
>this.length : number
95+
>this.length : any
9696
>this : this
97-
>length : number
97+
>length : any
9898
>n : number
9999
}
100100

@@ -151,9 +151,9 @@ var E = function(n) {
151151

152152
this.not_length_on_purpose = n;
153153
>this.not_length_on_purpose = n : number
154-
>this.not_length_on_purpose : number
154+
>this.not_length_on_purpose : any
155155
>this : this
156-
>not_length_on_purpose : number
156+
>not_length_on_purpose : any
157157
>n : number
158158

159159
};

tests/baselines/reference/propertiesOfGenericConstructorFunctions.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@ function Cp(t) {
9494

9595
this.x = 1
9696
>this.x = 1 : 1
97-
>this.x : number
97+
>this.x : any
9898
>this : this
99-
>x : number
99+
>x : any
100100
>1 : 1
101101

102102
this.y = t
103103
>this.y = t : T
104-
>this.y : T
104+
>this.y : any
105105
>this : this
106-
>y : T
106+
>y : any
107107
>t : T
108108
}
109109
Cp.prototype = {

tests/baselines/reference/thisPropertyAssignment.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ function F() {
4444

4545
this.a = {};
4646
>this.a = {} : {}
47-
>this.a : {}
47+
>this.a : any
4848
>this : this
49-
>a : {}
49+
>a : any
5050
>{} : {}
5151

5252
this.a.b = {};
@@ -60,7 +60,7 @@ function F() {
6060

6161
this["b"] = {};
6262
>this["b"] = {} : {}
63-
>this["b"] : {}
63+
>this["b"] : any
6464
>this : this
6565
>"b" : "b"
6666
>{} : {}

tests/baselines/reference/thisPropertyAssignmentCircular.symbols

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ function C() {
4444
>this.x : Symbol(C.x, Decl(thisPropertyAssignmentCircular.js, 13, 14), Decl(thisPropertyAssignmentCircular.js, 14, 15))
4545
>this : Symbol(C, Decl(thisPropertyAssignmentCircular.js, 10, 1))
4646
>x : Symbol(C.x, Decl(thisPropertyAssignmentCircular.js, 13, 14), Decl(thisPropertyAssignmentCircular.js, 14, 15))
47+
>this.x.toString : Symbol(Function.toString, Decl(lib.es5.d.ts, --, --))
4748
>this.x : Symbol(C.x, Decl(thisPropertyAssignmentCircular.js, 13, 14), Decl(thisPropertyAssignmentCircular.js, 14, 15))
4849
>this : Symbol(C, Decl(thisPropertyAssignmentCircular.js, 10, 1))
4950
>x : Symbol(C.x, Decl(thisPropertyAssignmentCircular.js, 13, 14), Decl(thisPropertyAssignmentCircular.js, 14, 15))
51+
>toString : Symbol(Function.toString, Decl(lib.es5.d.ts, --, --))
5052
}
5153

tests/baselines/reference/thisPropertyAssignmentCircular.types

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ function C() {
5252
>this : this
5353
>x : any
5454
>function() { this.x.toString(); } : () => void
55-
>this.x.toString() : any
56-
>this.x.toString : any
57-
>this.x : any
55+
>this.x.toString() : string
56+
>this.x.toString : () => string
57+
>this.x : () => void
5858
>this : this
59-
>x : any
60-
>toString : any
59+
>x : () => void
60+
>toString : () => string
6161
}
6262

0 commit comments

Comments
 (0)