Skip to content

Commit 04e6b6f

Browse files
committed
Accept slightly modified baselines
1 parent a90f97c commit 04e6b6f

12 files changed

+14
-14
lines changed

tests/baselines/reference/exportNestedNamespaces.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var classic = new s.Classic()
6868
/** @param {s.n.K} c
6969
@param {s.Classic} classic */
7070
function f(c, classic) {
71-
>f : (c: s.n.K, classic: s.Classic) => void
71+
>f : (c: K, classic: s.Classic) => void
7272
>c : K
7373
>classic : Classic
7474

tests/baselines/reference/jsDeclarationsClassStatic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ type HandlerOptions = {
7070
/**
7171
* Should be able to export a type alias at the same time.
7272
*/
73-
name: String;
73+
name: string;
7474
};

tests/baselines/reference/jsdocArrayObjectPromiseImplicitAny.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ var paramedObject = {valueOf: 1};
7272
* @return {Object}
7373
*/
7474
function returnAnyObject(obj) {
75-
>returnAnyObject : (obj: Object) => Object
75+
>returnAnyObject : (obj: any) => any
7676
>obj : any
7777

7878
return obj;

tests/baselines/reference/jsdocTemplateTag.types

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ let s = g('hi')()
4242
* @param {Array.<Object>} keyframes - Can't look up types on Element since it's a global in another file. (But it shouldn't crash).
4343
*/
4444
Element.prototype.animate = function(keyframes) {};
45-
>Element.prototype.animate = function(keyframes) {} : (keyframes: Array<Object>) => void
45+
>Element.prototype.animate = function(keyframes) {} : (keyframes: Array<any>) => void
4646
>Element.prototype.animate : (keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions) => Animation
4747
>Element.prototype : Element
4848
>Element : { new (): Element; prototype: Element; }
4949
>prototype : Element
5050
>animate : (keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions) => Animation
51-
>function(keyframes) {} : (keyframes: Array<Object>) => void
51+
>function(keyframes) {} : (keyframes: Array<any>) => void
5252
>keyframes : any[]
5353

tests/baselines/reference/jsdocTypeNongenericInstantiationAttempt.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,6 @@ function fn() {}
109109
* @param {fn<T>} somebody
110110
*/
111111
function sayHello8(somebody) { }
112-
>sayHello8 : (somebody: fn<T>) => void
112+
>sayHello8 : (somebody: () => void) => void
113113
>somebody : () => void
114114

tests/baselines/reference/jsdocTypeReferenceToValue.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== tests/cases/conformance/jsdoc/foo.js ===
22
/** @param {Image} image */
33
function process(image) {
4-
>process : (image: Image) => HTMLImageElement
4+
>process : (image: new (width?: number, height?: number) => HTMLImageElement) => HTMLImageElement
55
>image : new (width?: number, height?: number) => HTMLImageElement
66

77
return new image(1, 1)

tests/baselines/reference/moduleExportNestedNamespaces.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var classic = new s.Classic()
7575
/** @param {s.n.K} c
7676
@param {s.Classic} classic */
7777
function f(c, classic) {
78-
>f : (c: s.n.K, classic: s.Classic) => void
78+
>f : (c: C, classic: s.Classic) => void
7979
>c : C
8080
>classic : Classic
8181

tests/baselines/reference/prototypePropertyAssignmentMergeWithInterfaceMethod.types

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ lf.Transaction = function() {};
4040
* @return {!IThenable}
4141
*/
4242
lf.Transaction.prototype.begin = function(scope) {};
43-
>lf.Transaction.prototype.begin = function(scope) {} : (scope: Array<lf.schema.Table>) => any
43+
>lf.Transaction.prototype.begin = function(scope) {} : (scope: Array<any>) => any
4444
>lf.Transaction.prototype.begin : any
4545
>lf.Transaction.prototype : any
4646
>lf.Transaction : typeof Transaction
4747
>lf : typeof lf
4848
>Transaction : typeof Transaction
4949
>prototype : any
5050
>begin : any
51-
>function(scope) {} : (scope: Array<lf.schema.Table>) => any
51+
>function(scope) {} : (scope: Array<any>) => any
5252
>scope : any[]
5353

tests/baselines/reference/typeFromPropertyAssignment35.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== tests/cases/conformance/salsa/bug26877.js ===
22
/** @param {Emu.D} x */
33
function ollKorrect(x) {
4-
>ollKorrect : (x: Emu.D) => void
4+
>ollKorrect : (x: D) => void
55
>x : D
66

77
x._model

tests/baselines/reference/typeFromPropertyAssignment6.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var msgs = Outer.i.messages()
3333

3434
/** @param {Outer.Inner} inner */
3535
function x(inner) {
36-
>x : (inner: Outer.Inner) => void
36+
>x : (inner: I) => void
3737
>inner : I
3838
}
3939

tests/baselines/reference/varRequireFromJavascript.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ crunch.n
2525
* @param {ex.Crunch} wrap
2626
*/
2727
function f(wrap) {
28-
>f : (wrap: ex.Crunch) => void
28+
>f : (wrap: import("tests/cases/conformance/salsa/ex").Crunch) => void
2929
>wrap : import("tests/cases/conformance/salsa/ex").Crunch
3030

3131
wrap.n

tests/baselines/reference/varRequireFromTypescript.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ crunch.n
2626
* @param {ex.Crunch} wrap
2727
*/
2828
function f(greatest, wrap) {
29-
>f : (greatest: ex.Greatest, wrap: ex.Crunch) => void
29+
>f : (greatest: import("tests/cases/conformance/salsa/ex").Greatest, wrap: import("tests/cases/conformance/salsa/ex").Crunch) => void
3030
>greatest : import("tests/cases/conformance/salsa/ex").Greatest
3131
>wrap : import("tests/cases/conformance/salsa/ex").Crunch
3232

0 commit comments

Comments
 (0)