mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-29 16:29:19 -05:00
Cache the regularized form of union types (#37749)
* Cache the regularized form of union types * Inline function because why not * Introduce two fastpasths into isRelatedTo
This commit is contained in:
@@ -4653,6 +4653,8 @@ namespace ts {
|
||||
export interface UnionType extends UnionOrIntersectionType {
|
||||
/* @internal */
|
||||
resolvedReducedType: Type;
|
||||
/* @internal */
|
||||
regularType: UnionType;
|
||||
}
|
||||
|
||||
export interface IntersectionType extends UnionOrIntersectionType {
|
||||
|
||||
Reference in New Issue
Block a user