mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
add typings
This commit is contained in:
parent
f87ec5248e
commit
b78295c567
@ -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/)
|
||||
|
@ -31,6 +31,7 @@
|
||||
"lib",
|
||||
"style"
|
||||
],
|
||||
"typings":"dist/antd.d.ts",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"array-tree-filter": "~1.0.0",
|
||||
|
@ -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
1950
type-definitions/antd.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user