librarySchemaRecords

See source code

The records map to pass to createTLSchema / the client records option so a document can hold libraries. Register the types together, and identically on both sides of a connection.

librarySchemaRecords: {
  "library-item-content": {
    createDefaultProperties: () => {
      meta: {};
    };
    migrations: import("@tldraw/store").MigrationSequence;
    scope: "document";
    validator: T.Validator<TLLibraryItemContentRecord>;
  };
  "library-item": {
    createDefaultProperties: () => {
      meta: {};
      version: number;
    };
    migrations: import("@tldraw/store").MigrationSequence;
    scope: "document";
    validator: T.Validator<TLLibraryItemRecord>;
  };
  library: {
    createDefaultProperties: () => {
      meta: {};
    };
    migrations: import("@tldraw/store").MigrationSequence;
    scope: "document";
    validator: T.Validator<TLLibrary>;
  };
};
Prev
LANGUAGES
Next
lineShapeMigrations