Skip to content

Commit d579543

Browse files
authored
Fix typos (#41723)
1 parent 2a3f550 commit d579543

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/compiler/checker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16672,7 +16672,7 @@ namespace ts {
1667216672
}
1667316673
for (const [msg, ...args] of secondaryRootErrors) {
1667416674
const originalValue = msg.elidedInCompatabilityPyramid;
16675-
msg.elidedInCompatabilityPyramid = false; // Teporarily override elision to ensure error is reported
16675+
msg.elidedInCompatabilityPyramid = false; // Temporarily override elision to ensure error is reported
1667616676
reportError(msg, ...args);
1667716677
msg.elidedInCompatabilityPyramid = originalValue;
1667816678
}
@@ -24038,7 +24038,7 @@ namespace ts {
2403824038

2403924039
function getContextualTypeForChildJsxExpression(node: JsxElement, child: JsxChild) {
2404024040
const attributesType = getApparentTypeOfContextualType(node.openingElement.tagName);
24041-
// JSX expression is in children of JSX Element, we will look for an "children" atttribute (we get the name from JSX.ElementAttributesProperty)
24041+
// JSX expression is in children of JSX Element, we will look for an "children" attribute (we get the name from JSX.ElementAttributesProperty)
2404224042
const jsxChildrenPropertyName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node));
2404324043
if (!(attributesType && !isTypeAny(attributesType) && jsxChildrenPropertyName && jsxChildrenPropertyName !== "")) {
2404424044
return undefined;

src/compiler/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@ namespace ts {
15911591
// | 1. | i | 105 | Ascii i |
15921592
// | 2. | I | 73 | Ascii I |
15931593
// |-------- Special characters ------------------------------------------------------------------------|
1594-
// | 3. | \u0130 | 304 | Uppper case I with dot above |
1594+
// | 3. | \u0130 | 304 | Upper case I with dot above |
15951595
// | 4. | i,\u0307 | 105,775 | i, followed by 775: Lower case of (3rd item) |
15961596
// | 5. | I,\u0307 | 73,775 | I, followed by 775: Upper case of (4th item), lower case is (4th item) |
15971597
// | 6. | \u0131 | 305 | Lower case i without dot, upper case is I (2nd item) |

src/compiler/moduleNameResolver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ namespace ts {
10231023

10241024
/**
10251025
* This will be called on the successfully resolved path from `loadModuleFromFile`.
1026-
* (Not neeeded for `loadModuleFromNodeModules` as that looks up the `package.json` as part of resolution.)
1026+
* (Not needed for `loadModuleFromNodeModules` as that looks up the `package.json` as part of resolution.)
10271027
*
10281028
* packageDirectory is the directory of the package itself.
10291029
* For `blah/node_modules/foo/index.d.ts` this is packageDirectory: "foo"

src/compiler/watchPublic.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ namespace ts {
253253

254254

255255
const sourceFilesCache = new Map<string, HostFileInfo>(); // Cache that stores the source file and version info
256-
let missingFilePathsRequestedForRelease: Path[] | undefined; // These paths are held temparirly so that we can remove the entry from source file cache if the file is not tracked by missing files
256+
let missingFilePathsRequestedForRelease: Path[] | undefined; // These paths are held temporarily so that we can remove the entry from source file cache if the file is not tracked by missing files
257257
let hasChangedCompilerOptions = false; // True if the compiler options have changed between compilations
258258

259259
const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();

src/services/codefixes/convertToAsyncFunction.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ namespace ts.codefix {
142142
}
143143

144144
/*
145-
Renaming of identifiers may be neccesary as the refactor changes scopes -
145+
Renaming of identifiers may be necessary as the refactor changes scopes -
146146
This function collects all existing identifier names and names of identifiers that will be created in the refactor.
147147
It then checks for any collisions and renames them through getSynthesizedDeepClone
148148
*/

src/services/navigationBar.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ namespace ts.NavigationBar {
708708
return "default";
709709
}
710710
// We may get a string with newlines or other whitespace in the case of an object dereference
711-
// (eg: "app\n.onactivated"), so we should remove the whitespace for readabiltiy in the
711+
// (eg: "app\n.onactivated"), so we should remove the whitespace for readability in the
712712
// navigation bar.
713713
return getFunctionOrClassName(<ArrowFunction | FunctionExpression | ClassExpression>node);
714714
case SyntaxKind.Constructor:

0 commit comments

Comments
 (0)