Skip to content

Commit f2fafa1

Browse files
committed
docs: update readme
1 parent c0f01bb commit f2fafa1

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

README-en.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ Type definitions for APIs of Wechat Mini Program in TypeScript
1111

1212
## Install
1313

14-
### By DefinitelyTyped
15-
16-
```bash
17-
npm install @types/wechat-miniprogram
18-
```
19-
20-
or:
21-
2214
### By standalone npm package
2315

2416
```bash
@@ -37,6 +29,14 @@ Or reference by [Triple-Slash Directives](https://www.typescriptlang.org/docs/ha
3729

3830
- `/// <reference path="node_modules/miniprogram-api-typings/index.d.ts" />`
3931

32+
or:
33+
34+
### By DefinitelyTyped
35+
36+
```bash
37+
npm install @types/wechat-miniprogram
38+
```
39+
4040
## Changelog
4141

4242
See [CHANGELOG.md](https://github.com/wechat-miniprogram/api-typings/blob/master/CHANGELOG.md) (Chinese only)
@@ -56,6 +56,7 @@ Both PR and issue are welcomed for definitions of pages (`Page`), custom compone
5656
- [chs97](https://github.com/chs97)
5757
- [Jelf](https://github.com/okxiaoliang4)
5858
- [xieyuhang](https://github.com/haiya6)
59+
- [苏杰豪](https://github.com/Megasu)
5960

6061
### Automated tests
6162

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@
1717
npm install miniprogram-api-typings
1818
```
1919

20-
或:
21-
22-
### 通过 DefinitelyTyped
23-
24-
```bash
25-
npm install @types/wechat-miniprogram
26-
```
27-
2820
安装后手动导入:
2921

3022
- `import 'miniprogram-api-typings';`
@@ -37,6 +29,14 @@ npm install @types/wechat-miniprogram
3729

3830
- `/// <reference path="node_modules/miniprogram-api-typings/index.d.ts" />`
3931

32+
或:
33+
34+
### 通过 DefinitelyTyped
35+
36+
```bash
37+
npm install @types/wechat-miniprogram
38+
```
39+
4040
## 更新日志
4141

4242
参考 [CHANGELOG.md](https://github.com/wechat-miniprogram/api-typings/blob/master/CHANGELOG.md)
@@ -56,6 +56,7 @@ API 的定义文件(`lib.wx.api.d.ts`)是随 [文档](https://developers.wei
5656
- [chs97](https://github.com/chs97)
5757
- [Jelf](https://github.com/okxiaoliang4)
5858
- [xieyuhang](https://github.com/haiya6)
59+
- [苏杰豪](https://github.com/Megasu)
5960

6061
### 测试
6162

0 commit comments

Comments
 (0)