• Blog
  • Changelog
  • Follow us on GitHubFollow us on XJoin our Discord server
  • Blog
  • GitHub
  • Releases
  • Getting started

    • Quickstart
  • Library

    • Result
    • Type
    • Dependency injection
    • Conventions
  • Local-first

    • Examples
    • Protocol
    • Relay
    • Owner
    • Indexes
    • Migrations
    • Patterns
    • Time travel
    • Privacy
    • FAQ
  • Other

    • API reference
    • Comparison
    • Showcase
    • Changelog

API reference / @evolu/common / Evolu/Internal / ValidateSchemaHasId

Type Alias: ValidateSchemaHasId<S>

type ValidateSchemaHasId<S> = keyof S extends infer TableName ? TableName extends keyof S ? "id" extends keyof S[TableName] ? never : SchemaValidationError<`Table "${TableName & string}" is missing required id column.`> : never : never;

Defined in: packages/common/src/Evolu/Schema.ts:106

Type Parameters

Type Parameter
S extends EvoluSchema

Was this page helpful?

© Copyright 2025. All rights reserved.

Follow us on GitHubFollow us on XJoin our Discord server