Enable interface-over-type-literal lint rule (#17733)

This commit is contained in:
Andy
2017-09-07 09:14:59 -07:00
committed by GitHub
parent be0633825c
commit 193f4be355
7 changed files with 20 additions and 14 deletions

View File

@@ -21516,7 +21516,7 @@ namespace ts {
return true;
}
type InheritanceInfoMap = { prop: Symbol; containingType: Type };
interface InheritanceInfoMap { prop: Symbol; containingType: Type; }
const seen = createUnderscoreEscapedMap<InheritanceInfoMap>();
forEach(resolveDeclaredMembers(type).declaredProperties, p => { seen.set(p.escapedName, { prop: p, containingType: type }); });
let ok = true;