createTLSchema

See source code

Create a TLSchema with custom shapes. Custom shapes cannot override default shapes.

function createTLSchema({
  shapes,
  bindings,
  migrations,
}?: {
  bindings?: Record<string, SchemaPropsInfo>
  migrations?: readonly MigrationSequence[]
  shapes?: Record<string, SchemaPropsInfo>
}): TLSchema

Parameters

NameDescription

{ shapes, bindings, migrations, }

{
  bindings?: Record<string, SchemaPropsInfo>
  migrations?: readonly MigrationSequence[]
  shapes?: Record<string, SchemaPropsInfo>
}

Returns

Prev
createShapeValidator
Next
getDefaultColorTheme