We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e904c06 commit 64bd3dbCopy full SHA for 64bd3db
docs/d.ts.md
@@ -55,7 +55,7 @@ declare const pi: number;
55
export= pi;
56
```
57
58
-上面示例中,模块输出的是一个整数,那么可以用`export default`或`export =`表示输出这个值。
+上面示例中,模块输出的是一个数字,那么可以用`export default`或`export =`表示输出这个值。
59
60
下面是一个如何使用类型声明文件的简单例子。有一个类型声明文件`types.d.ts`。
61
@@ -239,7 +239,7 @@ interface Foo {} // 正确
239
declare interface Foo {} // 正确
240
241
242
-类型声明文件里面,顶层可以使用`export`命令,也可以不用,除非使用者脚本会显式使用`export`命令输入类型。
+类型声明文件里面,顶层可以使用`export`命令,也可以不用,除非使用者脚本会显式使用`import`命令输入类型。
243
244
```typescript
245
export interface Data {
0 commit comments