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

Function fn

packages/zod/src/v4/classic/tests/custom.test.ts:19–19  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

17
18test("instanceof", () => {
19 const fn = (value: string) => Uint8Array.from(Buffer.from(value, "base64"));
20
21 // Argument of type 'ZodCustom<Uint8Array<ArrayBuffer>, unknown>' is not assignable to parameter of type '$ZodType<any, Uint8Array<ArrayBuffer>>'.
22 z.string().transform(fn).pipe(z.instanceof(Uint8Array));

Callers 10

arrayFunction · 0.85
applyFunction · 0.85
checkerFunction · 0.85
function.test.tsFile · 0.85
indentedMethod · 0.85
_Function · 0.85
schemas.tsFile · 0.85
generateFastpassFunction · 0.85
_superRefineFunction · 0.85
schemas.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected