This commit is contained in:
Nathan Shively-Sanders 2017-05-24 12:57:46 -07:00
parent 4bab55f4ba
commit 4b1f1b6828

View file

@ -9397,7 +9397,7 @@ namespace ts {
* and no required properties or index signatures
*/
function isWeak(type: Type) {
let props = getPropertiesOfType(type);
const props = getPropertiesOfType(type);
return type.flags & TypeFlags.Object &&
props.length > 0 &&
every(props, p => !!(p.flags & SymbolFlags.Optional)) &&