ed8d4d9e05
This PR improves the types for the Store. - renames `StoreSnapshot` to `SerializedStore`, which is the return type of `Store.serialize` - creates `StoreSnapshot` as a type for the return type of `Store.getSnapshot` / the argument type for `Store.loadSnapshot` - creates `TLStoreSnapshot` as the type used for the `TLStore`. This came out of a session I had with a user. This should prevent needing to import types from `@tldraw/store` directly. ### Change Type - [x] `major` — Breaking change ### Test Plan - [x] Unit Tests ### Release Notes - [dev] Rename `StoreSnapshot` to `SerializedStore` - [dev] Create new `StoreSnapshot` as type related to `getSnapshot`/`loadSnapshot` |
||
---|---|---|
.. | ||
lib | ||
test | ||
index.ts |