mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 02:30:15 -06:00
Fix lint
This commit is contained in:
parent
4bab55f4ba
commit
4b1f1b6828
@ -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)) &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user