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

Method create

packages/zod/src/v3/types.ts:3952–3959  ·  view source on GitHub ↗
(args?: AnyZodTuple, returns?: ZodTypeAny, params?: RawCreateParams)

Source from the content-addressed store, hash-verified

3950 params?: RawCreateParams
3951 ): ZodFunction<T, U>;
3952 static create(args?: AnyZodTuple, returns?: ZodTypeAny, params?: RawCreateParams) {
3953 return new ZodFunction({
3954 args: (args ? args : ZodTuple.create([]).rest(ZodUnknown.create())) as any,
3955 returns: returns || ZodUnknown.create(),
3956 typeName: ZodFirstPartyTypeKind.ZodFunction,
3957 ...processCreateParams(params),
3958 }) as any;
3959 }
3960}
3961
3962///////////////////////////////////////

Callers

nothing calls this directly

Calls 3

processCreateParamsFunction · 0.85
restMethod · 0.65
createMethod · 0.45

Tested by

no test coverage detected