MCPcopy
hub / github.com/colinhacks/zod / args

Method args

packages/zod/src/v3/types.ts:3912–3919  ·  view source on GitHub ↗
(
    ...items: Items
  )

Source from the content-addressed store, hash-verified

3910 }
3911
3912 args<Items extends Parameters<(typeof ZodTuple)["create"]>[0]>(
3913 ...items: Items
3914 ): ZodFunction<ZodTuple<Items, ZodUnknown>, Returns> {
3915 return new ZodFunction({
3916 ...this._def,
3917 args: ZodTuple.create(items).rest(ZodUnknown.create()) as any,
3918 });
3919 }
3920
3921 returns<NewReturnType extends ZodType<any, any, any>>(returnType: NewReturnType): ZodFunction<Args, NewReturnType> {
3922 return new ZodFunction({

Callers 2

function.test.tsFile · 0.80
readonly.test.tsFile · 0.80

Calls 2

restMethod · 0.65
createMethod · 0.45

Tested by

no test coverage detected