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 @@ -7474,7 +7474,7 @@ namespace ts {
7474
7474
else {
7475
7475
// Otherwise, get the declared constraint type, and if the constraint type is a type parameter,
7476
7476
// get the constraint of that type parameter. If the resulting type is an indexed type 'keyof T',
7477
- // the modifiers type is T. Otherwise, the modifiers type is {} .
7477
+ // the modifiers type is T. Otherwise, the modifiers type is unknown .
7478
7478
const declaredType = <MappedType>getTypeFromMappedTypeNode(type.declaration);
7479
7479
const constraint = getConstraintTypeFromMappedType(declaredType);
7480
7480
const extendedConstraint = constraint && constraint.flags & TypeFlags.TypeParameter ? getConstraintOfTypeParameter(<TypeParameter>constraint) : constraint;
@@ -22570,7 +22570,7 @@ namespace ts {
22570
22570
links.type = contextualType;
22571
22571
const decl = parameter.valueDeclaration as ParameterDeclaration;
22572
22572
if (decl.name.kind !== SyntaxKind.Identifier) {
22573
- // if inference didn't come up with anything but {} , fall back to the binding pattern if present.
22573
+ // if inference didn't come up with anything but unknown , fall back to the binding pattern if present.
22574
22574
if (links.type === unknownType) {
22575
22575
links.type = getTypeFromBindingPattern(decl.name);
22576
22576
}
You can’t perform that action at this time.
0 commit comments