-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Too long return type fails to generate SDK #282
Labels
bug
Something isn't working
Comments
samchon
added a commit
to samchon/typia
that referenced
this issue
Mar 16, 2023
Fix samchon/nestia#282 - too long type name
samchon
added a commit
that referenced
this issue
Mar 16, 2023
Upgrade packages, then no problem would be:
|
git clone https://github.com/kakasoo/nestia-demo
cd nestia-demo
git switch nestia#28x
npm i
npm run build I updated it to the version as you specified and then created the SDK again. But nothing has changed. 23.03.19 |
@samchon |
kakasoo
added a commit
to kakasoo/nestia
that referenced
this issue
Mar 19, 2023
- ts.TypeFormatFlags.NoTruncation apply - I don't know how to test it work correctly, so I need your help.
samchon
added a commit
that referenced
this issue
Mar 27, 2023
fix : Too long return type fails to generate SDK #282
samchon
added a commit
that referenced
this issue
Mar 27, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I brought a new issue today. :(
Now I have implemented a type called
Try<T,E>
. I defined a type that returns T in normal cases and E in other cases. I decided to treat errors as an object instead of throwing it so that even all errors could be inferred.Therefore, this type of
Try<T,E>
is deduced to be a very long return type.The problem happened here.
If you look at the code below, you can immediately see how Nestia generated the SDK.
Please check the Output type of the namespace "ThisFunctionHasTooLongReturnType".
At the end of the type,
"{...; } | {...; } | { ...; }".
if you check this...
git clone https://github.com/kakasoo/nestia-demo cd nestia-demo git switch nestia#28x npm i npm run build
Then, you can check this bug. (
src/api/functional/api/omg/index.ts
)The text was updated successfully, but these errors were encountered: