Skip to content

Commit a9eed50

Browse files
committed
fix force lazy
1 parent 0474160 commit a9eed50

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/compiler/checker.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -2487,7 +2487,11 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
24872487
}
24882488
function unionIfLazy(_paramType: Type) {
24892489
const isLazy = isLazyParameterByType(_paramType);
2490-
const paramType = isLazy ? getUnionType([_paramType, (_paramType as TypeReference).resolvedTypeArguments![0]], UnionReduction.None) : _paramType;
2490+
const paramType = isLazy
2491+
? getUnionType([_paramType, (_paramType as TypeReference).resolvedTypeArguments![0]], UnionReduction.None)
2492+
: isForceLazyParameterByType(_paramType)
2493+
? (_paramType as TypeReference).resolvedTypeArguments![0]
2494+
: _paramType;
24912495
return paramType
24922496
}
24932497
function getFluentExtension(targetType: Type, name: string): Type | undefined {

0 commit comments

Comments
 (0)