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 +1 -1
- package/README.md +2 -5
- package/package.json +1 -1
package/README.en.md
CHANGED
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 }
|