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 102321e commit 2c1e6bdCopy full SHA for 2c1e6bd
basics/declaration-files.md
@@ -722,7 +722,7 @@ import { bar } from 'foo';
722
// 整体导入
723
import foo = require('foo');
724
// 单个导入
725
-import bar = foo.bar;
+import bar = require('foo').bar;
726
```
727
728
对于这种使用 commonjs 规范的库,假如要为它写类型声明文件的话,就需要使用到 `export =` 这种语法了[<sup>21</sup>](https://github.com/xcatliu/typescript-tutorial/tree/master/examples/declaration-files/21-export-equal):
0 commit comments