mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix lint
This commit is contained in:
1 parent
4bab55f4ba
commit
4b1f1b6828
1 file changed
+1
-1
@@ -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)) &&
|
||||
|
||||
Reference in new issue
Block a user