mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-12 12:57:11 -06:00
Remove duplicate function from checker
This commit is contained in:
parent
4d74f67325
commit
55852c495e
@ -7158,7 +7158,7 @@ namespace ts {
|
||||
return list.some(property => {
|
||||
const name = property.name && getTextOfPropertyName(property.name);
|
||||
const expected = name === undefined ? undefined : getTypeOfPropertyOfType(contextualType, name);
|
||||
return !!expected && typeIsLiteralType(expected) && !isTypeIdenticalTo(getTypeOfNode(property), expected);
|
||||
return !!expected && isLiteralType(expected) && !isTypeIdenticalTo(getTypeOfNode(property), expected);
|
||||
});
|
||||
}
|
||||
|
||||
@ -30937,8 +30937,4 @@ namespace ts {
|
||||
export const LibraryManagedAttributes = "LibraryManagedAttributes" as __String;
|
||||
// tslint:enable variable-name
|
||||
}
|
||||
|
||||
function typeIsLiteralType(type: Type): type is LiteralType {
|
||||
return !!(type.flags & TypeFlags.Literal);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user