yjs example (#1560)
This PR adds a yjs example to the examples app. ### Change Type - [x] `internal` — Any other changes that don't affect the published package (will not publish a new version) ### Release Notes - [editor] Adds yjs example project
This commit is contained in:
parent
bacb307bad
commit
d71d15124c
9 changed files with 606 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
import { Migrations, Store, StoreSnapshot } from '@tldraw/store'
|
||||
import { HistoryEntry, Migrations, Store, StoreSnapshot } from '@tldraw/store'
|
||||
import { TLRecord, TLStore, createTLSchema } from '@tldraw/tlschema'
|
||||
import { TLShapeUtilConstructor } from '../editor/shapeutils/ShapeUtil'
|
||||
|
||||
|
@ -16,6 +16,9 @@ export type TLStoreOptions = {
|
|||
defaultName?: string
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export type TLStoreEventInfo = HistoryEntry<TLRecord>
|
||||
|
||||
/**
|
||||
* A helper for creating a TLStore. Custom shapes cannot override default shapes.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue