grantila / suretype

Typesafe JSON (Schema) validator
508 stars 9 forks source link

Any plans to implement a "function" type? #31

Open finalclass opened 1 year ago

finalclass commented 1 year ago

What I'm looking for is a validator that would ensure that I have a function of acertain return type and arguments.

In zod there is something like this:

z.function().args([z.string(), z.number()]).ruturns(z.string())

do you plan adding something similar?