Skip to content

Add support for function schema #243

@Jimdooz

Description

@Jimdooz

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 requestpriorityThis has priorityworkaroundWorkaround fixes problem

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions