File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2429,7 +2429,11 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2429
2429
}
2430
2430
function unionIfLazy(_paramType: Type) {
2431
2431
const isLazy = isLazyParameterByType(_paramType);
2432
- const paramType = isLazy ? getUnionType([_paramType, (_paramType as TypeReference).resolvedTypeArguments![0]], UnionReduction.None) : _paramType;
2432
+ const paramType = isLazy
2433
+ ? getUnionType([_paramType, (_paramType as TypeReference).resolvedTypeArguments![0]], UnionReduction.None)
2434
+ : isForceLazyParameterByType(_paramType)
2435
+ ? (_paramType as TypeReference).resolvedTypeArguments![0]
2436
+ : _paramType;
2433
2437
return paramType
2434
2438
}
2435
2439
function getFluentExtension(targetType: Type, name: string): Type | undefined {
You can’t perform that action at this time.
0 commit comments