Skip to content

Commit 8ed1297

Browse files
author
Hye Sung Jung
authored
fix spelling errors (microsoft#36523)
* fix spelling errors * remove changes in lib/*
1 parent bfff115 commit 8ed1297

File tree

72 files changed

+219
-219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+219
-219
lines changed

scripts/eslint/rules/one-namespace-per-file.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export = createRule({
1010
recommended: "error",
1111
},
1212
messages: {
13-
excessNamespaceError: `All but one of these namespaces should be moved into seperate files.`,
13+
excessNamespaceError: `All but one of these namespaces should be moved into separate files.`,
1414
},
1515
schema: [],
1616
type: "problem",

src/compiler/checker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5750,7 +5750,7 @@ namespace ts {
57505750
// function g() {}
57515751
// module.exports.g = g
57525752
// ```
5753-
// In such a situation, we have a local variable named `g`, and a seperate exported variable named `g`.
5753+
// In such a situation, we have a local variable named `g`, and a separate exported variable named `g`.
57545754
// Naively, we would emit
57555755
// ```
57565756
// function g() {}
@@ -32285,7 +32285,7 @@ namespace ts {
3228532285
const sourceConstraint = constraint && getTypeFromTypeNode(constraint);
3228632286
const targetConstraint = getConstraintOfTypeParameter(target);
3228732287
// relax check if later interface augmentation has no constraint, it's more broad and is OK to merge with
32288-
// a more constrained interface (this could be generalized to a full heirarchy check, but that's maybe overkill)
32288+
// a more constrained interface (this could be generalized to a full hierarchy check, but that's maybe overkill)
3228932289
if (sourceConstraint && targetConstraint && !isTypeIdenticalTo(sourceConstraint, targetConstraint)) {
3229032290
return false;
3229132291
}

src/compiler/watchPublic.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ namespace ts {
689689

690690
let fileOrDirectoryPath: Path | undefined = toPath(fileOrDirectory);
691691

692-
// Since the file existance changed, update the sourceFiles cache
692+
// Since the file existence changed, update the sourceFiles cache
693693
if (cachedDirectoryStructureHost) {
694694
cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);
695695
}

src/server/editorServices.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ namespace ts.server {
376376
* openFilesImpactedByConfigFiles is a map of open files that would be impacted by this config file
377377
* because these are the paths being looked up for their default configured project location
378378
* The value in the map is true if the open file is root of the inferred project
379-
* It is false when the open file that would still be impacted by existance of
379+
* It is false when the open file that would still be impacted by existence of
380380
* this config file but it is not the root of inferred project
381381
*/
382382
openFilesImpactedByConfigFile: Map<boolean>;
@@ -575,7 +575,7 @@ namespace ts.server {
575575
*/
576576
private readonly projectToSizeMap: Map<number> = createMap<number>();
577577
/**
578-
* This is a map of config file paths existance that doesnt need query to disk
578+
* This is a map of config file paths existence that doesnt need query to disk
579579
* - The entry can be present because there is inferred project that needs to watch addition of config file to directory
580580
* In this case the exists could be true/false based on config file is present or not
581581
* - Or it is present if we have configured project open with config file at that location
@@ -1426,7 +1426,7 @@ namespace ts.server {
14261426
private setConfigFileExistenceByNewConfiguredProject(project: ConfiguredProject) {
14271427
const configFileExistenceInfo = this.getConfigFileExistenceInfo(project);
14281428
if (configFileExistenceInfo) {
1429-
// The existance might not be set if the file watcher is not invoked by the time config project is created by external project
1429+
// The existence might not be set if the file watcher is not invoked by the time config project is created by external project
14301430
configFileExistenceInfo.exists = true;
14311431
// close existing watcher
14321432
if (configFileExistenceInfo.configFileWatcherForRootOfInferredProject) {
@@ -2718,7 +2718,7 @@ namespace ts.server {
27182718
// since info is added as root to the inferred project only when there are no other projects containing it
27192719
// So when it is root of the inferred project and after project structure updates its now part
27202720
// of multiple project it needs to be removed from that inferred project because:
2721-
// - references in inferred project supercede the root part
2721+
// - references in inferred project supersede the root part
27222722
// - root / reference in non - inferred project beats root in inferred project
27232723

27242724
// eg. say this is structure /a/b/a.ts /a/b/c.ts where c.ts references a.ts

src/server/project.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ namespace ts.server {
17441744

17451745
/**
17461746
* If a file is opened, the server will look for a tsconfig (or jsconfig)
1747-
* and if successfull create a ConfiguredProject for it.
1747+
* and if successful create a ConfiguredProject for it.
17481748
* Otherwise it will create an InferredProject.
17491749
*/
17501750
export class ConfiguredProject extends Project {

src/services/formatting/formatting.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ namespace ts.formatting {
263263

264264
const error = sorted[index];
265265
if (r.end <= error.start!) {
266-
// specified range ends before the error refered by 'index' - no error in range
266+
// specified range ends before the error referred by 'index' - no error in range
267267
return false;
268268
}
269269

src/testRunner/unittests/tsserver/occurences.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace ts.projectSystem {
2-
describe("unittests:: tsserver:: occurence highlight on string", () => {
2+
describe("unittests:: tsserver:: occurrence highlight on string", () => {
33
it("should be marked if only on string values", () => {
44
const file1: File = {
55
path: "/a/b/file1.ts",

tests/baselines/reference/api/tsserverlibrary.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8880,7 +8880,7 @@ declare namespace ts.server {
88808880
}
88818881
/**
88828882
* If a file is opened, the server will look for a tsconfig (or jsconfig)
8883-
* and if successfull create a ConfiguredProject for it.
8883+
* and if successful create a ConfiguredProject for it.
88848884
* Otherwise it will create an InferredProject.
88858885
*/
88868886
class ConfiguredProject extends Project {
@@ -9157,7 +9157,7 @@ declare namespace ts.server {
91579157
*/
91589158
private readonly projectToSizeMap;
91599159
/**
9160-
* This is a map of config file paths existance that doesnt need query to disk
9160+
* This is a map of config file paths existence that doesnt need query to disk
91619161
* - The entry can be present because there is inferred project that needs to watch addition of config file to directory
91629162
* In this case the exists could be true/false based on config file is present or not
91639163
* - Or it is present if we have configured project open with config file at that location

tests/baselines/reference/bpSpanDestructuringAssignmentStatementArrayBindingPattern.baseline

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
>multiSkillB
106106
>:=> (line 22, col 3) to (line 22, col 14)
107107
--------------------------------
108-
23 >[, multiSkillB] = ["roomba", ["vaccum", "mopping"]];
108+
23 >[, multiSkillB] = ["roomba", ["vacuum", "mopping"]];
109109

110110
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (783 to 835) SpanInfo: {"start":786,"length":11}
111111
>multiSkillB

tests/baselines/reference/bpSpanDestructuringAssignmentStatementArrayBindingPatternDefaultValues.baseline

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
>multiSkillB = []
106106
>:=> (line 22, col 3) to (line 22, col 19)
107107
--------------------------------
108-
23 >[, multiSkillB = []] = ["roomba", ["vaccum", "mopping"]];
108+
23 >[, multiSkillB = []] = ["roomba", ["vacuum", "mopping"]];
109109

110110
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (817 to 874) SpanInfo: {"start":820,"length":16}
111111
>multiSkillB = []

tests/baselines/reference/bpSpanDestructuringParameterArrayBindingPattern2.baseline

+8-8
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@
154154
>foo1(robotA)
155155
>:=> (line 18, col 0) to (line 18, col 12)
156156
--------------------------------
157-
19 >foo1(["roomba", ["vaccum", "mopping"]]);
157+
19 >foo1(["roomba", ["vacuum", "mopping"]]);
158158

159159
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (459 to 499) SpanInfo: {"start":459,"length":39}
160-
>foo1(["roomba", ["vaccum", "mopping"]])
160+
>foo1(["roomba", ["vacuum", "mopping"]])
161161
>:=> (line 19, col 0) to (line 19, col 39)
162162
--------------------------------
163163
20 >foo2(robotA);
@@ -166,10 +166,10 @@
166166
>foo2(robotA)
167167
>:=> (line 20, col 0) to (line 20, col 12)
168168
--------------------------------
169-
21 >foo2(["roomba", ["vaccum", "mopping"]]);
169+
21 >foo2(["roomba", ["vacuum", "mopping"]]);
170170

171171
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (514 to 554) SpanInfo: {"start":514,"length":39}
172-
>foo2(["roomba", ["vaccum", "mopping"]])
172+
>foo2(["roomba", ["vacuum", "mopping"]])
173173
>:=> (line 21, col 0) to (line 21, col 39)
174174
--------------------------------
175175
22 >foo3(robotA);
@@ -178,10 +178,10 @@
178178
>foo3(robotA)
179179
>:=> (line 22, col 0) to (line 22, col 12)
180180
--------------------------------
181-
23 >foo3(["roomba", ["vaccum", "mopping"]]);
181+
23 >foo3(["roomba", ["vacuum", "mopping"]]);
182182

183183
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (569 to 609) SpanInfo: {"start":569,"length":39}
184-
>foo3(["roomba", ["vaccum", "mopping"]])
184+
>foo3(["roomba", ["vacuum", "mopping"]])
185185
>:=> (line 23, col 0) to (line 23, col 39)
186186
--------------------------------
187187
24 >foo4(robotA);
@@ -190,7 +190,7 @@
190190
>foo4(robotA)
191191
>:=> (line 24, col 0) to (line 24, col 12)
192192
--------------------------------
193-
25 >foo4(["roomba", ["vaccum", "mopping"]]);
193+
25 >foo4(["roomba", ["vacuum", "mopping"]]);
194194
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (624 to 663) SpanInfo: {"start":624,"length":39}
195-
>foo4(["roomba", ["vaccum", "mopping"]])
195+
>foo4(["roomba", ["vacuum", "mopping"]])
196196
>:=> (line 25, col 0) to (line 25, col 39)

tests/baselines/reference/bpSpanDestructuringParameterArrayBindingPatternDefaultValues2.baseline

+6-6
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@
142142
>foo1(robotA)
143143
>:=> (line 18, col 0) to (line 18, col 12)
144144
--------------------------------
145-
19 >foo1(["roomba", ["vaccum", "mopping"]]);
145+
19 >foo1(["roomba", ["vacuum", "mopping"]]);
146146

147147
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (543 to 583) SpanInfo: {"start":543,"length":39}
148-
>foo1(["roomba", ["vaccum", "mopping"]])
148+
>foo1(["roomba", ["vacuum", "mopping"]])
149149
>:=> (line 19, col 0) to (line 19, col 39)
150150
--------------------------------
151151
20 >foo2(robotA);
@@ -154,10 +154,10 @@
154154
>foo2(robotA)
155155
>:=> (line 20, col 0) to (line 20, col 12)
156156
--------------------------------
157-
21 >foo2(["roomba", ["vaccum", "mopping"]]);
157+
21 >foo2(["roomba", ["vacuum", "mopping"]]);
158158

159159
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (598 to 638) SpanInfo: {"start":598,"length":39}
160-
>foo2(["roomba", ["vaccum", "mopping"]])
160+
>foo2(["roomba", ["vacuum", "mopping"]])
161161
>:=> (line 21, col 0) to (line 21, col 39)
162162
--------------------------------
163163
22 >foo3(robotA);
@@ -166,7 +166,7 @@
166166
>foo3(robotA)
167167
>:=> (line 22, col 0) to (line 22, col 12)
168168
--------------------------------
169-
23 >foo3(["roomba", ["vaccum", "mopping"]]);
169+
23 >foo3(["roomba", ["vacuum", "mopping"]]);
170170
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (653 to 692) SpanInfo: {"start":653,"length":39}
171-
>foo3(["roomba", ["vaccum", "mopping"]])
171+
>foo3(["roomba", ["vacuum", "mopping"]])
172172
>:=> (line 23, col 0) to (line 23, col 39)

tests/baselines/reference/bpSpanDestructuringVariableStatementArrayBindingPattern2.baseline

+5-5
Original file line numberDiff line numberDiff line change
@@ -68,28 +68,28 @@
6868

6969
~ => Pos: (365 to 365) SpanInfo: undefined
7070
--------------------------------
71-
12 >let [nameMC] = ["roomba", ["vaccum", "mopping"]];
71+
12 >let [nameMC] = ["roomba", ["vacuum", "mopping"]];
7272

7373
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (366 to 415) SpanInfo: {"start":371,"length":6}
7474
>nameMC
7575
>:=> (line 12, col 5) to (line 12, col 11)
7676
--------------------------------
77-
13 >let [nameMC2, [primarySkillC, secondarySkillC]] = ["roomba", ["vaccum", "mopping"]];
77+
13 >let [nameMC2, [primarySkillC, secondarySkillC]] = ["roomba", ["vacuum", "mopping"]];
7878

7979
~~~~~~~~~~~~~ => Pos: (416 to 428) SpanInfo: {"start":421,"length":7}
8080
>nameMC2
8181
>:=> (line 13, col 5) to (line 13, col 12)
82-
13 >let [nameMC2, [primarySkillC, secondarySkillC]] = ["roomba", ["vaccum", "mopping"]];
82+
13 >let [nameMC2, [primarySkillC, secondarySkillC]] = ["roomba", ["vacuum", "mopping"]];
8383

8484
~~~~~~~~~~~~~~~~ => Pos: (429 to 444) SpanInfo: {"start":431,"length":13}
8585
>primarySkillC
8686
>:=> (line 13, col 15) to (line 13, col 28)
87-
13 >let [nameMC2, [primarySkillC, secondarySkillC]] = ["roomba", ["vaccum", "mopping"]];
87+
13 >let [nameMC2, [primarySkillC, secondarySkillC]] = ["roomba", ["vacuum", "mopping"]];
8888

8989
~~~~~~~~~~~~~~~~~=> Pos: (445 to 461) SpanInfo: {"start":446,"length":15}
9090
>secondarySkillC
9191
>:=> (line 13, col 30) to (line 13, col 45)
92-
13 >let [nameMC2, [primarySkillC, secondarySkillC]] = ["roomba", ["vaccum", "mopping"]];
92+
13 >let [nameMC2, [primarySkillC, secondarySkillC]] = ["roomba", ["vacuum", "mopping"]];
9393

9494
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (462 to 500) SpanInfo: {"start":430,"length":32}
9595
>[primarySkillC, secondarySkillC]

tests/baselines/reference/bpSpanDestructuringVariableStatementArrayBindingPatternDefaultValues2.baseline

+5-5
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,25 @@
6060
>[primarySkillA = "noSkill", secondarySkillA = "noSkill"] = ["noSkill", "noSkill"]
6161
>:=> (line 9, col 24) to (line 9, col 105)
6262
--------------------------------
63-
10 >let [nameMC = "noName" ] = ["roomba", ["vaccum", "mopping"]];
63+
10 >let [nameMC = "noName" ] = ["roomba", ["vacuum", "mopping"]];
6464

6565
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (453 to 514) SpanInfo: {"start":458,"length":17}
6666
>nameMC = "noName"
6767
>:=> (line 10, col 5) to (line 10, col 22)
6868
--------------------------------
69-
11 >let [nameMC2 = "noName", [primarySkillC = "noSkill", secondarySkillC = "noSkill"] = ["noSkill", "noSkill"]] = ["roomba", ["vaccum", "mopping"]];
69+
11 >let [nameMC2 = "noName", [primarySkillC = "noSkill", secondarySkillC = "noSkill"] = ["noSkill", "noSkill"]] = ["roomba", ["vacuum", "mopping"]];
7070
~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (515 to 538) SpanInfo: {"start":520,"length":18}
7171
>nameMC2 = "noName"
7272
>:=> (line 11, col 5) to (line 11, col 23)
73-
11 >let [nameMC2 = "noName", [primarySkillC = "noSkill", secondarySkillC = "noSkill"] = ["noSkill", "noSkill"]] = ["roomba", ["vaccum", "mopping"]];
73+
11 >let [nameMC2 = "noName", [primarySkillC = "noSkill", secondarySkillC = "noSkill"] = ["noSkill", "noSkill"]] = ["roomba", ["vacuum", "mopping"]];
7474
~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (539 to 566) SpanInfo: {"start":541,"length":25}
7575
>primarySkillC = "noSkill"
7676
>:=> (line 11, col 26) to (line 11, col 51)
77-
11 >let [nameMC2 = "noName", [primarySkillC = "noSkill", secondarySkillC = "noSkill"] = ["noSkill", "noSkill"]] = ["roomba", ["vaccum", "mopping"]];
77+
11 >let [nameMC2 = "noName", [primarySkillC = "noSkill", secondarySkillC = "noSkill"] = ["noSkill", "noSkill"]] = ["roomba", ["vacuum", "mopping"]];
7878
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (567 to 595) SpanInfo: {"start":568,"length":27}
7979
>secondarySkillC = "noSkill"
8080
>:=> (line 11, col 53) to (line 11, col 80)
81-
11 >let [nameMC2 = "noName", [primarySkillC = "noSkill", secondarySkillC = "noSkill"] = ["noSkill", "noSkill"]] = ["roomba", ["vaccum", "mopping"]];
81+
11 >let [nameMC2 = "noName", [primarySkillC = "noSkill", secondarySkillC = "noSkill"] = ["noSkill", "noSkill"]] = ["roomba", ["vacuum", "mopping"]];
8282
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (596 to 658) SpanInfo: {"start":540,"length":81}
8383
>[primarySkillC = "noSkill", secondarySkillC = "noSkill"] = ["noSkill", "noSkill"]
8484
>:=> (line 11, col 25) to (line 11, col 106)

tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause1.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module X.A.C {
66
module X.A.B.C {
77
module A {
88
}
9-
export class W implements X.A.C.Z { // This needs to be refered as X.A.C.Z as A has conflict
9+
export class W implements X.A.C.Z { // This needs to be referred as X.A.C.Z as A has conflict
1010
}
1111
}
1212

tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause1.symbols

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module X.A.B.C {
1717
module A {
1818
>A : Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 4, 16))
1919
}
20-
export class W implements X.A.C.Z { // This needs to be refered as X.A.C.Z as A has conflict
20+
export class W implements X.A.C.Z { // This needs to be referred as X.A.C.Z as A has conflict
2121
>W : Symbol(W, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 6, 5))
2222
>X.A.C.Z : Symbol(X.A.C.Z, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 0, 14))
2323
>X.A.C : Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 0, 11))

tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause1.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module X.A.B.C {
1111

1212
module A {
1313
}
14-
export class W implements X.A.C.Z { // This needs to be refered as X.A.C.Z as A has conflict
14+
export class W implements X.A.C.Z { // This needs to be referred as X.A.C.Z as A has conflict
1515
>W : W
1616
>X.A.C : any
1717
>X.A : typeof A

tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause3.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module X.A.C {
44
}
55
}
66
module X.A.B.C {
7-
export class W implements X.A.C.Z { // This needs to be refered as X.A.C.Z as A has conflict
7+
export class W implements X.A.C.Z { // This needs to be referred as X.A.C.Z as A has conflict
88
}
99
}
1010

tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause3.symbols

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module X.A.B.C {
1414
>B : Symbol(B, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 4, 11), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 9, 11))
1515
>C : Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 4, 13), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 9, 13))
1616

17-
export class W implements X.A.C.Z { // This needs to be refered as X.A.C.Z as A has conflict
17+
export class W implements X.A.C.Z { // This needs to be referred as X.A.C.Z as A has conflict
1818
>W : Symbol(W, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 4, 16))
1919
>X.A.C.Z : Symbol(X.A.C.Z, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 0, 14))
2020
>X.A.C : Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 0, 11))

tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause3.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module X.A.B.C {
99
>B : typeof B
1010
>C : typeof C
1111

12-
export class W implements X.A.C.Z { // This needs to be refered as X.A.C.Z as A has conflict
12+
export class W implements X.A.C.Z { // This needs to be referred as X.A.C.Z as A has conflict
1313
>W : W
1414
>X.A.C : any
1515
>X.A : typeof A

tests/baselines/reference/mergeClassInterfaceAndModule.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module C3 {}
1212
interface C3 {}
1313

1414
module C4 {}
15-
declare class C4 {} // error -- class declaration must preceed module declaration
15+
declare class C4 {} // error -- class declaration must precede module declaration
1616
interface C4 {}
1717

1818
//// [mergeClassInterfaceAndModule.js]

tests/baselines/reference/mergeClassInterfaceAndModule.symbols

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface C3 {}
2929
module C4 {}
3030
>C4 : Symbol(C4, Decl(mergeClassInterfaceAndModule.ts, 10, 15), Decl(mergeClassInterfaceAndModule.ts, 12, 12), Decl(mergeClassInterfaceAndModule.ts, 13, 19))
3131

32-
declare class C4 {} // error -- class declaration must preceed module declaration
32+
declare class C4 {} // error -- class declaration must precede module declaration
3333
>C4 : Symbol(C4, Decl(mergeClassInterfaceAndModule.ts, 10, 15), Decl(mergeClassInterfaceAndModule.ts, 12, 12), Decl(mergeClassInterfaceAndModule.ts, 13, 19))
3434

3535
interface C4 {}

tests/baselines/reference/mergeClassInterfaceAndModule.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module C3 {}
1818
interface C3 {}
1919

2020
module C4 {}
21-
declare class C4 {} // error -- class declaration must preceed module declaration
21+
declare class C4 {} // error -- class declaration must precede module declaration
2222
>C4 : C4
2323

2424
interface C4 {}

tests/baselines/reference/parserNotRegex1.errors.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ tests/cases/conformance/parser/ecmascript5/parserNotRegex1.ts(3,5): error TS1108
33

44

55
==== tests/cases/conformance/parser/ecmascript5/parserNotRegex1.ts (2 errors) ====
6-
if (a.indexOf(-(4/3))) // We should not get a regex here becuase of the / in the comment.
6+
if (a.indexOf(-(4/3))) // We should not get a regex here because of the / in the comment.
77
~
88
!!! error TS2304: Cannot find name 'a'.
99
{

0 commit comments

Comments
 (0)