-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Some types not resolvable transitively when published to .d.ts #1116
Comments
any
Similar resolution issues can occur when building schemas from other validators. I do want to look into strategies for avoiding this so that I can minimize cases where it occurs and give advice about how to work around the others, but this isn't a bug with ArkType. If anything, you could log a TypeScript bug describing how |
Is it possible your I wasn't able to reproduce this with modern tsconfig settings. Theoretically, See #1141 |
I'm using |
You will have to provide a repo or branch with a resolution. I tried to repro with the settings mentioned in the other issue and TS correctly serialized the output path as |
Updated arktype and now getting a new error:
This should just be simplified to |
Ok got it working with a few hacks |
Report a bug
π Search Terms
𧩠Context
π§βπ» Repro
Create a simple type like:
When used in TypeScript code,
Address
will resolve to typestring
. When compiled down into JavaScript, thed.ts
file looks like:Now
Address
resolves toany
.The text was updated successfully, but these errors were encountered: