tldraw/packages
Steve Ruiz ce1cf82029
Add optional generic to updateShapes / createShapes (#1579)
This PR adds a generic that we can use with `updateShapes` and
`createShapes` in order to type the partials being passed into those
methods. By default, the partials are typed as `TLUnknownShape`, which
accepts any props.

### Change Type

- [x] `minor` — New feature

### Test Plan

- [x] Unit Tests

### Release Notes

- [editor] adds an optional shape generic to `updateShapes` and
`createShapes`
2023-06-13 18:02:17 +00:00
..
assets Asset improvements (#1557) 2023-06-09 11:43:01 +00:00
editor Add optional generic to updateShapes / createShapes (#1579) 2023-06-13 18:02:17 +00:00
file-format Add optional generic to updateShapes / createShapes (#1579) 2023-06-13 18:02:17 +00:00
indices update lazyrepo 2023-06-05 18:32:32 +01:00
polyfills update lazyrepo 2023-06-05 18:32:32 +01:00
primitives Fix arrows with weird bends crashing (#1540) 2023-06-06 13:30:50 +00:00
store update lazyrepo 2023-06-05 18:32:32 +01:00
tldraw mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
tlschema [improvement] Embed shape cleanup (#1569) 2023-06-13 08:27:54 +00:00
ui [fix] embeds (#1578) 2023-06-13 12:45:43 +00:00
utils mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
validate mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00