fix:第19章文字勘误
This commit is contained in:
@@ -215,7 +215,7 @@ declare module 'moduleA' {
|
||||
|
||||
上面示例中,从模块`moduleA`导入了`Foo`接口,将其重命名为`Bar`,并用 declare 关键字为`Bar`增加一个属性`custom`。
|
||||
|
||||
下面是另一个例子。一个项目有多个模块,可以在一个模型中,对另一个模块的接口进行类型扩展。
|
||||
下面是另一个例子。一个项目有多个模块,可以在一个模块中,对另一个模块的接口进行类型扩展。
|
||||
|
||||
```typescript
|
||||
// a.ts
|
||||
|
||||
Reference in New Issue
Block a user