tldraw/apps
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
..
docs Add anchor targets to our headings. (#1571) 2023-06-12 17:09:17 +00:00
examples Add optional generic to updateShapes / createShapes (#1579) 2023-06-13 18:02:17 +00:00
vscode mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00