From 2626977eca4eb93cf67aa7474e1739faf0177a2f Mon Sep 17 00:00:00 2001 From: ShroXd Date: Wed, 16 Dec 2020 17:20:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(typescript.md):=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E4=BA=86=E4=B8=80=E4=B8=AA=E7=AC=94=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/es6/typeScript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/es6/typeScript.md b/docs/es6/typeScript.md index b4c536cf..1e1243d3 100644 --- a/docs/es6/typeScript.md +++ b/docs/es6/typeScript.md @@ -227,7 +227,7 @@ const result1: intersection = { ### 联合类型 -交叉类型(Union Types),表示一个值可以是几种类型之一。 我们用竖线 | 分隔每个类型,所以 number | string | boolean表示一个值可以是 number, string,或 boolean +联合类型(Union Types),表示一个值可以是几种类型之一。 我们用竖线 | 分隔每个类型,所以 number | string | boolean表示一个值可以是 number, string,或 boolean ```js type arg = string | number | boolean