@mocanvas/store · function
declare function tldrFileToStoreSnapshot(file: {
schema: SerializedSchema;
records: readonly UnknownRecord[];
}): {
store: SerializedStore<UnknownRecord>;
schema: SerializedSchema;
}Convert a parsed file into a { store, schema } snapshot.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.