1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-01 19:22:35 +02:00

Update documentation for TypeScript availability in @next release only

This commit is contained in:
Sunny Hirai
2021-03-19 16:42:00 -07:00
parent b0f35f6dbe
commit 1940317d6a

View File

@@ -1,5 +1,15 @@
# TypeScript # TypeScript
Extended TypeScript support is currently available in the `@next` release of Slate only but should be a regular release soon. You will need to install it before using.:
```sh
# for npm
npm install --save slate@next
# for yarn
yarn add slate@next
```
Slate supports typing of one Slate document model (eg. one set of custom `Element` and `Text` types). Slate supports typing of one Slate document model (eg. one set of custom `Element` and `Text` types).
If you need to support more than one document model, see the section Multiple Document Models. If you need to support more than one document model, see the section Multiple Document Models.