vinejs / vine

VineJS is a form data validation library for Node.js
https://vinejs.dev
MIT License
1.1k stars 21 forks source link

Missing export for VineNativeEnum #59

Closed simoneNEMO closed 4 months ago

simoneNEMO commented 5 months ago

Package version

v2.1.0

Describe the bug

The schema class VineNativeEnum is not currently exported while all other schema classes are. This causes the error by the Typescript compiler:

error TS2742: The inferred type of 'foo' cannot be named without a reference to '../../node_modules/@vinejs/vine/build/src/schema/enum/native_enum.js'. This is likely not portable. A type annotation is necessary.

Reproduction repo

No response

thetutlage commented 4 months ago

Does this error happens when you have declarations: true in your tsconfig.json file?

simoneNEMO commented 4 months ago

Yes that is the case. Thanks for merging!