infer recursive type (Typescript) #47984
Labels
typescript
Typescript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
Hi.
I'm not sure if this is a bug/feature in vscode or in typescript, but recursive types resolves to any?
Giving the code below TestType3 resolves to:
TypeScript Type<{prop1: Type<String>,prop2: Type<any>}>
and not as i expected
TypeScript Type<{prop1: Type<String>,prop2: Type<{subprop: Type<String>}>
I'm not sure if this is a typescript issue, but the compiler catches the error if prop2 does not contain a string property with the name subprop.
Does this issue occur when all extensions are disabled?: Yes
Regards Mikkel
The text was updated successfully, but these errors were encountered: