You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/types.ts
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -4405,15 +4405,16 @@ namespace ts {
4405
4405
exporttypeTypeMapper=(t: TypeParameter)=>Type;
4406
4406
4407
4407
exportconstenumInferencePriority{
4408
-
NakedTypeVariable=1<<0,// Naked type variable in union or intersection type
4409
-
HomomorphicMappedType=1<<1,// Reverse inference for homomorphic mapped type
4410
-
MappedTypeConstraint=1<<2,// Reverse inference for mapped type
4411
-
ReturnType=1<<3,// Inference made from return type of generic function
4412
-
LiteralKeyof=1<<4,// Inference made from a string literal to a keyof T
4413
-
NoConstraints=1<<5,// Don't infer from constraints of instantiable types
4414
-
AlwaysStrict=1<<6,// Always use strict rules for contravariant inferences
4415
-
4416
-
PriorityImpliesCombination=ReturnType|MappedTypeConstraint|LiteralKeyof,// These priorities imply that the resulting type should be a combination of all candidates
4408
+
NakedTypeVariable=1<<0,// Naked type variable in union or intersection type
4409
+
HomomorphicMappedType=1<<1,// Reverse inference for homomorphic mapped type
4410
+
PartialHomomorphicMappedType=1<<2,// Partial reverse inference for homomorphic mapped type
4411
+
MappedTypeConstraint=1<<3,// Reverse inference for mapped type
4412
+
ReturnType=1<<4,// Inference made from return type of generic function
4413
+
LiteralKeyof=1<<5,// Inference made from a string literal to a keyof T
4414
+
NoConstraints=1<<6,// Don't infer from constraints of instantiable types
4415
+
AlwaysStrict=1<<7,// Always use strict rules for contravariant inferences
4416
+
4417
+
PriorityImpliesCombination=ReturnType|MappedTypeConstraint|LiteralKeyof,// These priorities imply that the resulting type should be a combination of all candidates
0 commit comments