8000 fix spelling errors (#36523) · microsoft/TypeScript@8ed1297 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ed1297

Browse files
author
Hye Sung Jung
authored
fix spelling errors (#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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
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 n F438 ot 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

Lines changed: 1 addition & 1 deletion
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
* Otherw 10000 ise it will create an InferredProject.
17491749
*/
17501750
export class ConfiguredProject extends Project {

src/services/formatting/formatting.ts

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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 = []

0 commit comments

Comments
 (0)
0