fix: add arg

This commit is contained in:
franklin
2022-11-29 14:17:38 +01:00
parent 15aeb20538
commit 4289052c8e
7 changed files with 24 additions and 15 deletions
+2 -2
View File
@@ -115,8 +115,8 @@ 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 nestedType(v:github_com_foomo_gotsrpc_v2_example_basic_service.NestedType|null):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", [v]))[0]
}
async string(v:string):Promise<string> {
return (await this.transport<{0:string}>("String", [v]))[0]
+4 -5
View File
@@ -86,16 +86,15 @@ 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>
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.NestedTypeSubType|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.NestedTypeSubType
export interface NestedTypeSubType {
}
// github.com/foomo/gotsrpc/v2/example/basic/service.StringType
export enum StringType {
StringAType = "A",