File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6828,7 +6828,7 @@ namespace ts {
6828
6828
if (target.flags & TypeFlags.TypeParameter) {
6829
6829
// Given a type parameter K with a constraint keyof T, a type S is
6830
6830
// assignable to K if S is assignable to keyof T.
6831
- let constraint = getConstraintOfTypeParameter(<TypeParameter>target);
6831
+ const constraint = getConstraintOfTypeParameter(<TypeParameter>target);
6832
6832
if (constraint && constraint.flags & TypeFlags.Index) {
6833
6833
if (result = isRelatedTo(source, constraint, reportErrors)) {
6834
6834
return result;
@@ -6838,7 +6838,7 @@ namespace ts {
6838
6838
else if (target.flags & TypeFlags.Index) {
6839
6839
// Given a type parameter T with a constraint C, a type S is assignable to
6840
6840
// keyof T if S is assignable to keyof C.
6841
- let constraint = getConstraintOfTypeParameter((<IndexType>target).type);
6841
+ const constraint = getConstraintOfTypeParameter((<IndexType>target).type);
6842
6842
if (constraint) {
6843
6843
if (result = isRelatedTo(source, getIndexType(constraint), reportErrors)) {
6844
6844
return result;
You can’t perform that action at this time.
0 commit comments