Skip to content

Commit 5d4a2f1

Browse files
committed
docs(operator): fixed #101
1 parent 4c7a0cb commit 5d4a2f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/operator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ type Greeting = `hello ${World}`;
588588

589589
上面示例中,类型`Greeting`是一个模板字符串,里面引用了另一个字符串类型`world`,因此`Greeting`实际上是字符串`hello world`
590590

591-
注意,模板字符串可以引用的类型一共6种,分别是 string、number、bigint、boolean、null、undefined。引用这6种以外的类型会报错
591+
注意,模板字符串可以引用的类型一共7种,分别是 string、number、bigint、boolean、null、undefined、Enum。引用这7种以外的类型会报错
592592

593593
```typescript
594594
type Num = 123;

0 commit comments

Comments
 (0)