Merge pull request #33 from EthanLiu2022/main

第16章和第19章文字勘误
This commit is contained in:
Ruan YiFeng
2023-08-15 09:02:48 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -215,7 +215,7 @@ declare module 'moduleA' {
上面示例中,从模块`moduleA`导入了`Foo`接口,将其重命名为`Bar`,并用 declare 关键字为`Bar`增加一个属性`custom`
下面是另一个例子。一个项目有多个模块,可以在一个模中,对另一个模块的接口进行类型扩展。
下面是另一个例子。一个项目有多个模块,可以在一个模中,对另一个模块的接口进行类型扩展。
```typescript
// a.ts

View File

@@ -266,7 +266,7 @@ C.bar // 2
上面示例中,名称空间`C`为类`C`添加了一个静态属性`bar`
命名空间还能同名 Enum 合并。
命名空间还能同名 Enum 合并。
```typescript
enum E {