be4b814a4c
* Treat never-like intersections as never * Accept new baselines * Fix compiler issues revealed by increased intersection correctness * Delete fourslash tests that are no longer applicable * Include isNeverLikeIntersection check in getNormalizedType * Erase never-like types in several more places * Check that base types are not never-like * Add comments * Revert isNeverLikeType check in getIndexType (keyof shouldn't resolve member types) * Introduce getReducedType for union and intersection types * Don't reduce in getApparentType * Avoid relationship check in resolveMappedTypeMembers * Accept new baselines * Don't call getReducedType in getIndexType * Ensure reduced and unreduced forms of a type can compare identical * Reduce types before converting them to string representation * Accept new baselines * Reduce intersections before obtaining keyof X * Add tests * Accept new baselines * Fix comment in tests * Don't infer from empty intersection types * Add tests * Accept new baselines * Defer instantiation of mapped type property types * Accept new baselines * Include more precise type in diagnostic * Accept new baselines * Minor optimization * Improve error message * Optional properties in intersections are never discriminants |
||
---|---|---|
.. | ||
ambient | ||
async | ||
classes | ||
constEnums | ||
controlFlow | ||
declarationEmit | ||
decorators | ||
dynamicImport | ||
emitter | ||
enums | ||
es6 | ||
es7 | ||
es2017 | ||
es2018 | ||
es2019 | ||
es2020/modules | ||
expressions | ||
externalModules | ||
functions | ||
generators | ||
interfaces | ||
internalModules | ||
jsdoc | ||
jsx | ||
moduleResolution | ||
parser | ||
references | ||
salsa | ||
scanner | ||
statements | ||
Symbols | ||
types | ||
typings | ||
fixSignatureCaching.ts | ||
inferFromBindingPattern.ts |