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:
Steve Ruiz 2023-06-09 13:15:06 +01:00 committed by GitHub
parent bacb307bad
commit d71d15124c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 606 additions and 7 deletions

View file

@ -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.
*