-
-
Notifications
You must be signed in to change notification settings - Fork 269
Closed
Labels
enhancementNew feature or requestNew feature or requestpriorityThis has priorityThis has priorityworkaroundWorkaround fixes problemWorkaround fixes problem
Description
Hi,
I've been exploring the current features and noticed that function schema
validation, similar to what's available in Zod, isn't part of the project. I think incorporating this could enhance the functionality for users who rely on strict typing for functions.
I was thinking about something like this
const MyFunctionSchema = v.function()
.args(
v.string()
)
.returns(
v.boolean()
)
type FunctionSchema = Output<typeof MyFunctionSchema >;
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpriorityThis has priorityThis has priorityworkaroundWorkaround fixes problemWorkaround fixes problem