add typings

This commit is contained in:
bang 2016-04-21 15:52:54 +08:00
parent f87ec5248e
commit b78295c567
4 changed files with 1961 additions and 0 deletions

View File

@ -42,6 +42,13 @@ Normal browsers and Internet Explorer 8+.
> [IE8 issues](https://github.com/xcatliu/react-ie8)
## TypeScript
```js
///<reference path='./node_modules/antd/dist/antd.d.ts'/>
...
```
## Links
- [Home page](http://ant.design/)

View File

@ -31,6 +31,7 @@
"lib",
"style"
],
"typings":"dist/antd.d.ts",
"license": "MIT",
"dependencies": {
"array-tree-filter": "~1.0.0",

View File

@ -11,4 +11,7 @@ fs.writeFileSync(path.join(cwd, 'lib/index.js'), newIndex, 'utf-8');
const antdCss = path.join(cwd, 'dist/antd.css');
fs.createReadStream(antdCss)
.pipe(fs.createWriteStream(path.join(cwd, 'lib/index.css')));
const typings = path.join(cwd, 'type-definitions/antd.d.ts');
fs.createReadStream(typings)
.pipe(fs.createWriteStream(path.join(cwd, 'dist/antd.d.ts'), 'utf-8'));
console.log('prenpm done');

1950
type-definitions/antd.d.ts vendored Normal file

File diff suppressed because it is too large Load Diff