1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-22 06:12:06 +02:00
Ivan Voskoboinyk e0f41514a1
Improve props argument type in Transforms.setNodes() (#4638)
* Fix `setNodes()` props argument type

Because Typescript can know which type of nodes we are modifying thanks to the `T` inferred from `match` function, 
it can also properly narrow down the `props` argument type.

* Fix TS errors in examples

* Add a changeset
2021-11-04 04:43:18 -07:00
..
2021-03-31 15:14:54 -04:00