From 4425a783fc1c36b7cc996890dbeb0e376a17ca8e Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Mon, 29 Mar 2021 18:07:45 -0700 Subject: [PATCH] docs: Improve wording on TypeScript docs and emphasized the warning --- docs/concepts/11-typescript.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/concepts/11-typescript.md b/docs/concepts/11-typescript.md index ab1604669..87af6731c 100644 --- a/docs/concepts/11-typescript.md +++ b/docs/concepts/11-typescript.md @@ -1,10 +1,9 @@ # TypeScript -Slate supports typing of one Slate document model (eg. one set of custom `Editor`, `Element` and `Text` types). +Slate supports typing of one Slate document model (ie. one set of custom `Editor`, `Element` and `Text` types). If you need to support more than one document model, see the section Multiple Document Models. -You must define `CustomTypes` when using TypeScript or Slate will display typing errors. +**Warning:** You must define `CustomTypes` when using TypeScript or Slate will display typing errors. -If you need to support more than one document model, see the section Multiple Document Models. ## Defining `Editor`, `Element` and `Text` Types