Home / Type/ NoUnknownKeys Type — drizzle-orm Architecture

NoUnknownKeys Type — drizzle-orm Architecture

Architecture documentation for the NoUnknownKeys type/interface in schema.types.internal.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  05441026_c117_4283_20a6_e1617c56f0b9["NoUnknownKeys"]
  224d090d_0385_ea0a_7fbe_57b37e55038e["schema.types.internal.ts"]
  05441026_c117_4283_20a6_e1617c56f0b9 -->|defined in| 224d090d_0385_ea0a_7fbe_57b37e55038e
  style 05441026_c117_4283_20a6_e1617c56f0b9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-typebox/src/schema.types.internal.ts lines 61–69

export type NoUnknownKeys<
	TRefinement extends Record<string, any>,
	TCompare extends Record<string, any>,
> = {
	[K in keyof TRefinement]: K extends keyof TCompare ? TRefinement[K] extends t.TSchema ? TRefinement[K]
		: TRefinement[K] extends Record<string, t.TSchema> ? NoUnknownKeys<TRefinement[K], TCompare[K]>
		: TRefinement[K]
		: DrizzleTypeError<`Found unknown key in refinement: "${K & string}"`>;
};

Frequently Asked Questions

What is the NoUnknownKeys type?
NoUnknownKeys is a type/interface in the drizzle-orm codebase, defined in drizzle-typebox/src/schema.types.internal.ts.
Where is NoUnknownKeys defined?
NoUnknownKeys is defined in drizzle-typebox/src/schema.types.internal.ts at line 61.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free