-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Export your internal types #4409
Comments
The main reason we don't export all types by default is that they can undergo breaking changes at any time, they are strictly private with a few minor exceptions. I can expose both the |
I'm sorry, the first error is really cured by adding For the second error. It is true that internal types can be changed in a critical way at any time, however:
I've created a small sandbox where you can try building a minified version of the wrapper: |
Sorry for the delay, I think it's fine if we expose everything so I will be doing that, but types would not be covered by semantic versioning. |
Excuse me for the delay too. This is great news, looking forward to the release |
Is your feature request related to a problem? Please describe.
I am developing a component library for my company and making a small wrapper around the
useForm
composable, but i've faced with one problem:vee-validate
doesn't export most types/interfaces, and that is a problem becausetsc
just crashes with two types of errors:error TS2742: The inferred type of 'useForm' cannot be named without a reference to 'vee-validate/node_modules/type-fest'. This is likely not portable. A type annotation is necessary
;error TS4058: Return type of exported function has or is using name 'BaseComponentBinds' from external module "<project-path>/node_modules/vee-validate/dist/vee-validate" but cannot be named
Second error concerns not only
BaseComponentBinds
type.Describe the solution you'd like
Can you export your internal types, interfaces and etc?
Describe alternatives you've considered
I have no alternative for this issue
The text was updated successfully, but these errors were encountered: