Public function

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

Signature
function createTLSchema({
  shapes,
  migrations,
}?: {
  migrations?: readonly MigrationSequence[]
  shapes?: Record<string, SchemaShapeInfo>
}): TLSchema
Parameters
NameDescription

{ shapes, migrations, }

{
  migrations?: readonly MigrationSequence[]
  shapes?: Record<string, SchemaShapeInfo>
}
Returns
TLSchema
References

MigrationSequence, SchemaShapeInfo, TLSchema

Source

packages/tlschema/src/createTLSchema.ts

createShapeValidatorDefaultColorStyle