stacked-server-typescript-types 1.1.3
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/eslint.config.mjs +15 -0
- package/generate-index.js +159 -0
- package/generate-typescript-types.sh +508 -0
- package/mock_proto_types/empty.ts +12 -0
- package/mock_proto_types/struct.ts +17 -0
- package/mock_proto_types/timestamp.ts +12 -0
- package/mock_proto_types/wrappers.ts +51 -0
- package/package.json +12 -0
- package/process-openapi-types.js +747 -0
- package/typegen-package.json +20 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export class Struct {
|
|
2
|
+
static encode(...args: any): any {
|
|
3
|
+
return [];
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
static decode(...args: any): any {
|
|
7
|
+
return "";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
static wrap(...args: any): any {
|
|
11
|
+
return "";
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static unwrap(...args: any): any {
|
|
15
|
+
return {};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Code generated-ish fallback. DO NOT EDIT.
|
|
2
|
+
// Minimal shim for google/protobuf/wrappers.proto when protoc output isn't available.
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class BoolValue {
|
|
6
|
+
value: boolean;
|
|
7
|
+
|
|
8
|
+
static encode(...args: any): any {
|
|
9
|
+
return [];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
static decode(...args: any): BoolValue {
|
|
13
|
+
return { value: false } as any;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class StringValue {
|
|
18
|
+
value: string;
|
|
19
|
+
|
|
20
|
+
static encode(...args: any): any {
|
|
21
|
+
return [];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
static decode(...args: any): StringValue {
|
|
25
|
+
return { value: "" } as any;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export class Int32Value {
|
|
30
|
+
value: number;
|
|
31
|
+
|
|
32
|
+
static encode(...args: any): any {
|
|
33
|
+
return [];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
static decode(...args: any): Int32Value {
|
|
37
|
+
return { value: 0 } as any;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export class Int64Value {
|
|
42
|
+
value: number;
|
|
43
|
+
|
|
44
|
+
static encode(...args: any): any {
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
static decode(...args: any): Int64Value {
|
|
49
|
+
return { value: 0 } as any;
|
|
50
|
+
}
|
|
51
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "stacked-server-typescript-types",
|
|
3
|
+
"version": "1.1.3",
|
|
4
|
+
"description": "TypeScript type generation for web and mobile",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"generate-types": "./generate-typescript-types.sh"
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"ts-proto": "^2.4.0",
|
|
10
|
+
"openapi-typescript": "^7.0.0"
|
|
11
|
+
}
|
|
12
|
+
}
|