-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typia generated can't load type #538
Comments
It is a bug cleary, but no way to fix it for a while, as I don't know how to. Therefore, I suggest two ways: 1. Declare interface instead of typeWhen declare a It is the reason why return type of If you change 2. Specify generic argumentIf you specify generic argument like |
I will try to fix this bug by implementing advanced type analyzer which can write import statements, but cannot sure success. |
Not easy to implement in generation mode. |
Is it fixed? |
Maybe, try it. |
Everything is working fine for me. import { type ContainsFooOrBar } from "types"; instead of import { ContainsFooOrBar } from "types"; |
I made a reproduction https://github.com/AlexRMU/typia538/blob/main/src/App.svelte |
Related: |
Currently, tsconfig aliases are not supported, you need to use relative imports or vite aliases. |
Bug Report
error is simple
But,
FooOrBar
is not importedIt cause TS2304 Cannot find name 'FooOrBar'
settings
The text was updated successfully, but these errors were encountered: