@morda-dev/create-sdk 1.1.3 → 1.2.0
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.md +128 -123
- package/bin/create-sdk.js +95 -261
- package/package.json +16 -10
- package/src/cli/args.js +14 -0
- package/src/cli/prompts.js +2 -0
- package/src/cli/run.js +80 -0
- package/src/cli/scaffold.js +107 -0
- package/src/cli/utils.js +28 -0
- package/template/.github/workflows/ci.yml +30 -30
- package/template/LICENSE +21 -21
- package/template/README.md +49 -49
- package/template/api-extractor.json +10 -5
- package/template/etc/project-template.api.md +32 -32
- package/template/package.json +9 -10
- package/template/src/index.ts +25 -25
- package/template/src/modules/user.ts +31 -31
- package/template/src/types/user.ts +17 -17
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @public
|
|
3
|
-
* User entity
|
|
4
|
-
*/
|
|
5
|
-
export interface User {
|
|
6
|
-
id: number;
|
|
7
|
-
name: string;
|
|
8
|
-
age: number;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @public
|
|
13
|
-
* Generic API result
|
|
14
|
-
*/
|
|
15
|
-
export type ApiResult<T> =
|
|
16
|
-
| { success: true; data: T }
|
|
17
|
-
| { success: false; error: string };
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* User entity
|
|
4
|
+
*/
|
|
5
|
+
export interface User {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
age: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
* Generic API result
|
|
14
|
+
*/
|
|
15
|
+
export type ApiResult<T> =
|
|
16
|
+
| { success: true; data: T }
|
|
17
|
+
| { success: false; error: string };
|