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

Method keyof

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

Source from the content-addressed store, hash-verified

1382 shape: Shape;
1383
1384 keyof(): ZodEnum<util.ToEnum<keyof Shape & string>>;
1385 /** Define a schema to validate all unrecognized keys. This overrides the existing strict/loose behavior. */
1386 catchall<T extends core.SomeType>(schema: T): ZodObject<Shape, core.$catchall<T>>;
1387

Callers 3

object.test.tsFile · 0.65
object.test.tsFile · 0.65
object.test.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected