gen-api-types 1.0.19 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md CHANGED
@@ -19,7 +19,7 @@ With this tool, we can mark request interface classes and methods through TypeSc
19
19
  1. npm installation
20
20
 
21
21
  ```shell
22
- npm install gen-api-types
22
+ npm install gen-api-types -D
23
23
  ```
24
24
 
25
25
  #### Usage
package/README.md CHANGED
@@ -19,7 +19,7 @@
19
19
  1.npm 安装
20
20
 
21
21
  ```shell
22
- npm install gen-api-types
22
+ npm install gen-api-types -D
23
23
  ```
24
24
 
25
25
  #### 使用说明
@@ -31,10 +31,7 @@ import { gen_type_c, gen_type_m } from 'gen-api-types'
31
31
 
32
32
  @gen_type_c()
33
33
  export class TestApi {
34
- @gen_type_m({
35
- args: [100],
36
- typeName: 'XXX',
37
- })
34
+ @gen_type_m({ args: [100], typeName: 'XXX' })
38
35
  static async getList(id: number): Promise<XXX> {
39
36
  return asleep(1000).then(() => {
40
37
  return { name: 'zs', id }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gen-api-types",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "一个自动生成请求接口返回类型的 cli 小工具",
5
5
  "main": "./src/index.ts",
6
6
  "exports": {