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

Function oboolean

packages/zod/src/v3/types.ts:5082–5082  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5080const ostring = () => stringType().optional();
5081const onumber = () => numberType().optional();
5082const oboolean = () => booleanType().optional();
5083
5084export const coerce = {
5085 string: ((arg) => ZodString.create({ ...arg, coerce: true })) as (typeof ZodString)["create"],

Callers

nothing calls this directly

Calls 1

optionalMethod · 0.80

Tested by

no test coverage detected