We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0474160 commit a9eed50Copy full SHA for a9eed50
src/compiler/checker.ts
@@ -2487,7 +2487,11 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2487
}
2488
function unionIfLazy(_paramType: Type) {
2489
const isLazy = isLazyParameterByType(_paramType);
2490
- const paramType = isLazy ? getUnionType([_paramType, (_paramType as TypeReference).resolvedTypeArguments![0]], UnionReduction.None) : _paramType;
+ const paramType = isLazy
2491
+ ? getUnionType([_paramType, (_paramType as TypeReference).resolvedTypeArguments![0]], UnionReduction.None)
2492
+ : isForceLazyParameterByType(_paramType)
2493
+ ? (_paramType as TypeReference).resolvedTypeArguments![0]
2494
+ : _paramType;
2495
return paramType
2496
2497
function getFluentExtension(targetType: Type, name: string): Type | undefined {
0 commit comments