Skip to content

Commit 8dfc2a1

Browse files
committed
Add comma
1 parent 6438fd5 commit 8dfc2a1

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/compiler/diagnosticMessages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@
443443
"category": "Error",
444444
"code": 1147
445445
},
446-
"Cannot use imports, exports or module augmentations when '--module' is 'none'.": {
446+
"Cannot use imports, exports, or module augmentations when '--module' is 'none'.": {
447447
"category": "Error",
448448
"code": 1148
449449
},
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
tests/cases/compiler/a.ts(1,14): error TS1148: Cannot use imports, exports or module augmentations when '--module' is 'none'.
1+
tests/cases/compiler/a.ts(1,14): error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'.
22

33

44
==== tests/cases/compiler/a.ts (1 errors) ====
55
export class Foo {
66
~~~
7-
!!! error TS1148: Cannot use imports, exports or module augmentations when '--module' is 'none'.
7+
!!! error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'.
88
foo: string;
99
}
1010

tests/baselines/reference/staticAnonymousTypeNotReferencingTypeParameter.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,9 +562,9 @@ class ListWrapper {
562562
>ListWrapper : Symbol(ListWrapper, Decl(staticAnonymousTypeNotReferencingTypeParameter.ts, 38, 1))
563563
>l : Symbol(l, Decl(staticAnonymousTypeNotReferencingTypeParameter.ts, 113, 43))
564564
>T : Symbol(T, Decl(staticAnonymousTypeNotReferencingTypeParameter.ts, 113, 16))
565-
>JSON.stringify : Symbol(JSON.stringify, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
565+
>JSON.stringify : Symbol(JSON.stringify, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
566566
>JSON : Symbol(JSON, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
567-
>stringify : Symbol(JSON.stringify, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
567+
>stringify : Symbol(JSON.stringify, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
568568
>l : Symbol(l, Decl(staticAnonymousTypeNotReferencingTypeParameter.ts, 113, 43))
569569

570570
static maximum<T>(dit: typeof ListWrapper, list: T[], predicate: (t: T) => number): T {

tests/baselines/reference/staticAnonymousTypeNotReferencingTypeParameter.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,9 +662,9 @@ class ListWrapper {
662662
>l : T[]
663663
>T : T
664664
>JSON.stringify(l) : string
665-
>JSON.stringify : { (value: any): string; (value: any, replacer: (key: string, value: any) => any): string; (value: any, replacer: any[]): string; (value: any, replacer: (key: string, value: any) => any, space: string | number): string; (value: any, replacer: any[], space: string | number): string; }
665+
>JSON.stringify : { (value: any, replacer?: (key: string, value: any) => any, space?: string | number): string; (value: any, replacer?: (number | string)[], space?: string | number): string; }
666666
>JSON : JSON
667-
>stringify : { (value: any): string; (value: any, replacer: (key: string, value: any) => any): string; (value: any, replacer: any[]): string; (value: any, replacer: (key: string, value: any) => any, space: string | number): string; (value: any, replacer: any[], space: string | number): string; }
667+
>stringify : { (value: any, replacer?: (key: string, value: any) => any, space?: string | number): string; (value: any, replacer?: (number | string)[], space?: string | number): string; }
668668
>l : T[]
669669

670670
static maximum<T>(dit: typeof ListWrapper, list: T[], predicate: (t: T) => number): T {

0 commit comments

Comments
 (0)