Fix lint
This commit is contained in:
parent
4bab55f4ba
commit
4b1f1b6828
1 changed files with 1 additions and 1 deletions
|
@ -9397,7 +9397,7 @@ namespace ts {
|
||||||
* and no required properties or index signatures
|
* and no required properties or index signatures
|
||||||
*/
|
*/
|
||||||
function isWeak(type: Type) {
|
function isWeak(type: Type) {
|
||||||
let props = getPropertiesOfType(type);
|
const props = getPropertiesOfType(type);
|
||||||
return type.flags & TypeFlags.Object &&
|
return type.flags & TypeFlags.Object &&
|
||||||
props.length > 0 &&
|
props.length > 0 &&
|
||||||
every(props, p => !!(p.flags & SymbolFlags.Optional)) &&
|
every(props, p => !!(p.flags & SymbolFlags.Optional)) &&
|
||||||
|
|
Loading…
Reference in a new issue