Skip to content

Commit ed003b9

Browse files
committed
Accept new baselines
1 parent 55034d8 commit ed003b9

6 files changed

Lines changed: 14 additions & 14 deletions

tests/baselines/reference/constDeclarations.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ for (const c5 = 0, c6 = 0; c5 < c6;) {
2525

2626

2727
//// [constDeclarations.d.ts]
28-
declare const c1: false;
28+
declare const c1: boolean;
2929
declare const c2: number;
30-
declare const c3: 0, c4: string, c5: any;
30+
declare const c3: number, c4: string, c5: any;

tests/baselines/reference/constDeclarations2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var M;
2020

2121
//// [constDeclarations2.d.ts]
2222
declare module M {
23-
const c1: false;
23+
const c1: boolean;
2424
const c2: number;
25-
const c3: 0, c4: string, c5: any;
25+
const c3: number, c4: string, c5: any;
2626
}

tests/baselines/reference/declarationEmitClassMemberNameConflict2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var Foo = (function () {
4545

4646

4747
//// [declarationEmitClassMemberNameConflict2.d.ts]
48-
declare const Bar: "bar";
48+
declare const Bar: string;
4949
declare enum Hello {
5050
World = 0,
5151
}

tests/baselines/reference/shorthandOfExportedEntity01_targetES2015_CommonJS.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ exports.foo = foo;
1717

1818

1919
//// [shorthandOfExportedEntity01_targetES2015_CommonJS.d.ts]
20-
export declare const test: "test";
20+
export declare const test: string;
2121
export declare function foo(): void;

tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ exports.foo = foo;
1717

1818

1919
//// [shorthandOfExportedEntity02_targetES5_CommonJS.d.ts]
20-
export declare const test: "test";
20+
export declare const test: string;
2121
export declare function foo(): void;

tests/baselines/reference/stringLiteralTypesOverloads02.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ declare function getFalsyPrimitive(x: "number" | "string"): number | string;
100100
declare function getFalsyPrimitive(x: "number" | "string" | "boolean"): number | string | boolean;
101101
declare namespace Consts1 {
102102
}
103-
declare const string: "string";
104-
declare const number: "number";
105-
declare const boolean: "boolean";
106-
declare const stringOrNumber: "string" | "number";
107-
declare const stringOrBoolean: "string" | "boolean";
108-
declare const booleanOrNumber: "number" | "boolean";
109-
declare const stringOrBooleanOrNumber: "string" | "number" | "boolean";
103+
declare const string: string;
104+
declare const number: string;
105+
declare const boolean: string;
106+
declare const stringOrNumber: string;
107+
declare const stringOrBoolean: string;
108+
declare const booleanOrNumber: string;
109+
declare const stringOrBooleanOrNumber: string;
110110
declare namespace Consts2 {
111111
}

0 commit comments

Comments
 (0)