tldraw/packages
alex 0375b5d86d
Stricter ID types (#1439)
We noticed that when inferring the type of a shape from its ID, it was
getting inferred as `any` which was hiding some issues. This diff
switches `BaseRecord`'s automatic ID to an explicit one, which lets us
pass in our correct `TLShapeId` definition and still have it play nicely
with other places.

### Change Type

- [x] `patch` — Bug Fix

### Release Notes

[internal only, covered by #1432 changelog]

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-05-24 11:25:41 +00:00
..
assets [feature] add laser pointer (#1412) 2023-05-19 11:09:13 +00:00
editor Stricter ID types (#1439) 2023-05-24 11:25:41 +00:00
file-format Stricter ID types (#1439) 2023-05-24 11:25:41 +00:00
indices Create @tldraw/indices package (#1426) 2023-05-22 08:18:01 +00:00
polyfills avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
primitives Measure individual words instead of just line breaks for text exports (#1397) 2023-05-22 15:10:03 +00:00
tldraw [refactor] restore createTLSchema (#1444) 2023-05-24 10:48:31 +00:00
tlschema Stricter ID types (#1439) 2023-05-24 11:25:41 +00:00
tlstore Stricter ID types (#1439) 2023-05-24 11:25:41 +00:00
tlsync-client [refactor] restore createTLSchema (#1444) 2023-05-24 10:48:31 +00:00
tlvalidate avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
ui Stricter ID types (#1439) 2023-05-24 11:25:41 +00:00
utils Stricter ID types (#1439) 2023-05-24 11:25:41 +00:00