Public function

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

Signature
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
TLSchema
References

SchemaPropsInfo, MigrationSequence, TLSchema

Source

packages/tlschema/src/createTLSchema.ts

createShapeValidatorDefaultColorStyle