createTLSchema

Public Function

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

Parameters
NameDescription

opts

(optional)

{
  customShapes: Record<string, SchemaShapeInfo>
}

Options

Returns
StoreSchema<TLRecord, TLStoreProps>
References

Record, SchemaShapeInfo, StoreSchema, TLRecord, TLStoreProps

Edit this page
Last edited on 5 June 2023
createShapeValidatorDocumentRecordType