Skip to content

SchemaLike

type SchemaLike =
| VgiSchema
| SchemaShape
| Record<string, VgiDataType | VgiField>;

Defined in: src/schema.ts:90

A schema specification that accepts:

  • A real VgiSchema (passed through)
  • Anything structurally SchemaShape
  • A record mapping field names to VgiDataType instances or VgiField instances
  • An empty {} for an empty schema