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

Method readonly

packages/zod/src/v4/classic/schemas.ts:182–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180 target: T | core.$ZodType<any, core.output<this>>
181 ): ZodPipe<this, T>;
182 readonly(): ZodReadonly<this>;
183
184 /** Returns a new instance that has been registered in `z.globalRegistry` with the specified description */
185 describe(description: string): this;

Callers 14

readonly.test.tsFile · 0.80
convertSchemaFunction · 0.80
index.test.tsFile · 0.80
readonlyFunction · 0.80
lazy.test.tsFile · 0.80
readonly.test.tsFile · 0.80
tuple.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 1

readonlyFunction · 0.64