docs: update README (#3238)

This commit is contained in:
feng zhi hao 2016-09-30 09:51:55 +08:00 committed by Benjy Cui
parent c8b741283e
commit b501a79d91
2 changed files with 12 additions and 4 deletions

View File

@ -45,9 +45,16 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
## TypeScript
```js
///<reference path='./node_modules/antd/type-definitions/antd.d.ts'/>
...
tsconfig.json
```
{
"compilerOptions": {
"moduleResolution": "node",
"jsx": "preserve",
"allowSyntheticDefaultImports": true
}
}
```
## 链接

View File

@ -75,7 +75,8 @@ tsconfig.json
{
"compilerOptions": {
"moduleResolution": "node",
"jsx": "preserve"
"jsx": "preserve",
"allowSyntheticDefaultImports": true
}
}
```