Public function

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

Signature
function createTLSchema({
  shapes,
}: {
  shapes: Record<string, SchemaShapeInfo>
}): TLSchema
Parameters
NameDescription

{ shapes }

{
  shapes: Record<string, SchemaShapeInfo>
}
Returns
TLSchema
References

SchemaShapeInfo, TLSchema

Source

packages/tlschema/src/createTLSchema.ts

createShapeValidatorDefaultColorStyle