Skip to content

Export VineUnionOfTypes schema#147

Merged
thetutlage merged 1 commit into
vinejs:4.xfrom
Melchyore:4.x
Jul 18, 2026
Merged

Export VineUnionOfTypes schema#147
thetutlage merged 1 commit into
vinejs:4.xfrom
Melchyore:4.x

Conversation

@Melchyore

Copy link
Copy Markdown
Contributor

Package version

4.3

📚 Description

The schema class VineUnionOfTypes is not currently exported while all other schema classes are. This causes the error by the Typescript compiler in a monorepo where I have a validators package that holds validators used by my Nuxt app and AdonisJS API:

The inferred type of 'schema' cannot be named without a reference to 'VineUnionOfTypes' from '../node_modules/@vinejs/vine/build/src/schema/union_of_types/main.js'. This is likely not portable. A type annotation is necessary.

@Melchyore Melchyore changed the title chore: export VineUnionOfTypes Export VineUnionOfTypes schema Jul 15, 2026
@thetutlage
thetutlage merged commit aa577aa into vinejs:4.x Jul 18, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants