ValidateShape Type — drizzle-orm Architecture
Architecture documentation for the ValidateShape type/interface in utils.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD a5a25dc8_448f_f307_f81a_5bc339f4003f["ValidateShape"] 99737bc3_a631_a054_9291_f966c791930f["utils.ts"] a5a25dc8_448f_f307_f81a_5bc339f4003f -->|defined in| 99737bc3_a631_a054_9291_f966c791930f style a5a25dc8_448f_f307_f81a_5bc339f4003f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/utils.ts lines 242–247
export type ValidateShape<T, ValidShape, TResult = T> = T extends ValidShape
? Exclude<keyof T, keyof ValidShape> extends never ? TResult
: DrizzleTypeError<
`Invalid key(s): ${Exclude<(keyof T) & (string | number | bigint | boolean | null | undefined), keyof ValidShape>}`
>
: never;
Defined In
Source
Frequently Asked Questions
What is the ValidateShape type?
ValidateShape is a type/interface in the drizzle-orm codebase, defined in drizzle-orm/src/utils.ts.
Where is ValidateShape defined?
ValidateShape is defined in drizzle-orm/src/utils.ts at line 242.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free