fix: collected nested types

This commit is contained in:
franklin
2022-11-29 13:57:04 +01:00
parent 6ca8be109d
commit ef0be4b5bc
8 changed files with 81 additions and 18 deletions
@@ -115,6 +115,9 @@ export class ServiceClient {
async interfaceSlice(v:Array<any>|null):Promise<Array<any>|null> {
return (await this.transport<{0:Array<any>|null}>("InterfaceSlice", [v]))[0]
}
async nestedType():Promise<github_com_foomo_gotsrpc_v2_example_basic_service.NestedType|null> {
return (await this.transport<{0:github_com_foomo_gotsrpc_v2_example_basic_service.NestedType|null}>("NestedType", []))[0]
}
async string(v:string):Promise<string> {
return (await this.transport<{0:string}>("String", [v]))[0]
}
+10
View File
@@ -86,6 +86,16 @@ export enum IntTypeMapValue {
IntATypeMapValue = 1,
IntBTypeMapValue = 2,
}
// github.com/foomo/gotsrpc/v2/example/basic/service.NestedSubType
export interface NestedSubType {
Foo:string;
}
// github.com/foomo/gotsrpc/v2/example/basic/service.NestedType
export type NestedType = Record<github_com_foomo_gotsrpc_v2_example_basic_service.NestedTypeKey,Record<github_com_foomo_gotsrpc_v2_example_basic_service.NestedTypeSubKey,Array<github_com_foomo_gotsrpc_v2_example_basic_service.NestedSubType|null>|null>|null>
// github.com/foomo/gotsrpc/v2/example/basic/service.NestedTypeKey
export type NestedTypeKey = string
// github.com/foomo/gotsrpc/v2/example/basic/service.NestedTypeSubKey
export type NestedTypeSubKey = string
// github.com/foomo/gotsrpc/v2/example/basic/service.StringType
export enum StringType {
StringAType = "A",