Skip to content

Commit fdac86f

Browse files
committed
Linter errors
1 parent 96504fa commit fdac86f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/compiler/checker.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5479,7 +5479,7 @@ namespace ts {
54795479
let targetType = getIndexTypeOfType(target, IndexKind.String);
54805480
if (targetType) {
54815481
if ((targetType.flags & TypeFlags.Any) && !(originalSource.flags & TypeFlags.Primitive)) {
5482-
// non-primitive assignment to any is always allowed, eg
5482+
// non-primitive assignment to any is always allowed, eg
54835483
// `var x: { [index: string]: any } = { property: 12 };`
54845484
return Ternary.True;
54855485
}
@@ -5509,7 +5509,7 @@ namespace ts {
55095509
let targetType = getIndexTypeOfType(target, IndexKind.Number);
55105510
if (targetType) {
55115511
if ((targetType.flags & TypeFlags.Any) && !(originalSource.flags & TypeFlags.Primitive)) {
5512-
// non-primitive assignment to any is always allowed, eg
5512+
// non-primitive assignment to any is always allowed, eg
55135513
// `var x: { [index: number]: any } = { property: 12 };`
55145514
return Ternary.True;
55155515
}
@@ -6586,9 +6586,9 @@ namespace ts {
65866586
return;
65876587
}
65886588

6589-
// 1. walk from the use site up to the declaration and check
6589+
// 1. walk from the use site up to the declaration and check
65906590
// if there is anything function like between declaration and use-site (is binding/class is captured in function).
6591-
// 2. walk from the declaration up to the boundary of lexical environment and check
6591+
// 2. walk from the declaration up to the boundary of lexical environment and check
65926592
// if there is an iteration statement in between declaration and boundary (is binding/class declared inside iteration statement)
65936593

65946594
let container: Node;
@@ -11631,14 +11631,14 @@ namespace ts {
1163111631
//
1163211632
// When we get the type of the `Promise` symbol here, we get the type of the static
1163311633
// side of the `Promise` class, which would be `{ new <T>(...): Promise<T> }`.
11634-
11634+
1163511635
let promiseType = getTypeFromTypeNode(node.type);
1163611636
if (promiseType === unknownType && compilerOptions.isolatedModules) {
1163711637
// If we are compiling with isolatedModules, we may not be able to resolve the
1163811638
// type as a value. As such, we will just return unknownType;
1163911639
return unknownType;
1164011640
}
11641-
11641+
1164211642
let promiseConstructor = getNodeLinks(node.type).resolvedSymbol;
1164311643
if (!promiseConstructor || !symbolIsValue(promiseConstructor)) {
1164411644
let typeName = promiseConstructor

0 commit comments

Comments
 (0)