Skip to content

Commit

Permalink
docs(operator): fixed #101
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Mar 19, 2024
1 parent 4c7a0cb commit 5d4a2f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ type Greeting = `hello ${World}`;

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

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

```typescript
type Num = 123;
Expand Down

0 comments on commit 5d4a2f1

Please sign in to comment.