Remove duplicate function from checker

This commit is contained in:
Wesley Wigham 2018-12-17 15:52:32 -08:00
parent 4d74f67325
commit 55852c495e
No known key found for this signature in database
GPG Key ID: D59F87F60C5400C9

View File

@ -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);
}
}