File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7676,7 +7676,7 @@ namespace ts {
7676
7676
else {
7677
7677
// Otherwise, get the declared constraint type, and if the constraint type is a type parameter,
7678
7678
// get the constraint of that type parameter. If the resulting type is an indexed type 'keyof T',
7679
- // the modifiers type is T. Otherwise, the modifiers type is {} .
7679
+ // the modifiers type is T. Otherwise, the modifiers type is unknown .
7680
7680
const declaredType = <MappedType>getTypeFromMappedTypeNode(type.declaration);
7681
7681
const constraint = getConstraintTypeFromMappedType(declaredType);
7682
7682
const extendedConstraint = constraint && constraint.flags & TypeFlags.TypeParameter ? getConstraintOfTypeParameter(<TypeParameter>constraint) : constraint;
@@ -23360,7 +23360,7 @@ namespace ts {
23360
23360
links.type = contextualType;
23361
23361
const decl = parameter.valueDeclaration as ParameterDeclaration;
23362
23362
if (decl.name.kind !== SyntaxKind.Identifier) {
23363
- // if inference didn't come up with anything but {} , fall back to the binding pattern if present.
23363
+ // if inference didn't come up with anything but unknown , fall back to the binding pattern if present.
23364
23364
if (links.type === unknownType) {
23365
23365
links.type = getTypeFromBindingPattern(decl.name);
23366
23366
}
You can’t perform that action at this time.
0 commit comments