Skip to content

Commit 6a5de5d

Browse files
committed
Fix linting errors
1 parent d9b0b63 commit 6a5de5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6828,7 +6828,7 @@ namespace ts {
68286828
if (target.flags & TypeFlags.TypeParameter) {
68296829
// Given a type parameter K with a constraint keyof T, a type S is
68306830
// assignable to K if S is assignable to keyof T.
6831-
let constraint = getConstraintOfTypeParameter(<TypeParameter>target);
6831+
const constraint = getConstraintOfTypeParameter(<TypeParameter>target);
68326832
if (constraint && constraint.flags & TypeFlags.Index) {
68336833
if (result = isRelatedTo(source, constraint, reportErrors)) {
68346834
return result;
@@ -6838,7 +6838,7 @@ namespace ts {
68386838
else if (target.flags & TypeFlags.Index) {
68396839
// Given a type parameter T with a constraint C, a type S is assignable to
68406840
// keyof T if S is assignable to keyof C.
6841-
let constraint = getConstraintOfTypeParameter((<IndexType>target).type);
6841+
const constraint = getConstraintOfTypeParameter((<IndexType>target).type);
68426842
if (constraint) {
68436843
if (result = isRelatedTo(source, getIndexType(constraint), reportErrors)) {
68446844
return result;

0 commit comments

Comments
 (0)