Skip to content

AnyValibotSchema utility type #1356

@petdomaa100

Description

@petdomaa100

Whenever I create functions that take a Valibot schema as an argument, I have to define a AnyValibotSchema type:

type AnyValibotSchema = v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>>;

While defining this is completely fine, it would be nice if I could just import this.

I'm open to contributing to this feature.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions