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

Interface ZodNullable

packages/zod/src/v4/classic/schemas.ts:2108–2113  ·  packages/zod/src/v4/classic/schemas.ts::ZodNullable

Source from the content-addressed store, hash-verified

2106
2107class="cm">// ZodNullable
2108export interface ZodNullable<T extends core.SomeType = core.$ZodType>
2109 extends _ZodType<core.$ZodNullableInternals<T>>,
2110 core.$ZodNullable<T> {
2111 class="st">"~standard": ZodStandardSchemaWithJSON<this>;
2112 unwrap(): T;
2113}
2114export const ZodNullable: core.$constructor<ZodNullable> = /*@__PURE__*/ core.$constructor(
2115 class="st">"ZodNullable",
2116 (inst, def) => {

Callers

nothing calls this directly

Implementers 5

ZodPromisepackages/zod/src/v3/types.ts
ZodOptionalpackages/zod/src/v3/types.ts
ZodNullablepackages/zod/src/v3/types.ts
ZodBrandedpackages/zod/src/v3/types.ts
ZodReadonlypackages/zod/src/v3/types.ts

Calls

no outgoing calls

Tested by

no test coverage detected