Skip to content

Commit

Permalink
add typings
Browse files Browse the repository at this point in the history
  • Loading branch information
BANG88 committed Apr 21, 2016
1 parent f87ec52 commit b78295c
Show file tree
Hide file tree
Showing 4 changed files with 1,961 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"lib",
"style"
],
"typings":"dist/antd.d.ts",
"license": "MIT",
"dependencies": {
"array-tree-filter": "~1.0.0",
Expand Down
3 changes: 3 additions & 0 deletions scripts/prenpm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Loading

0 comments on commit b78295c

Please sign in to comment.