File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export class Example implements ExampleClient {
130130 } )
131131 }
132132
133- getArticle = ( req : GetArticleRequest , headers ?: object , signal ?: AbortSignal ) : Promise < GetArticleRequest > => {
133+ getArticle = ( req : GetArticleRequest , headers ?: object , signal ?: AbortSignal ) : Promise < GetArticleResponse > => {
134134 return this . fetch (
135135 this . url ( 'GetArticle' ) ,
136136 createHttpRequest ( req , headers , signal ) ) . then ( ( res ) => { return buildResponse ( res )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export class {{.Name}} implements {{.Name}}Client {
2323 return this.hostname + this.path + name
2424 }
2525 {{range $_, $method := .Methods}}
26- {{firstLetterToLower .Name}} = ({{template "methodInputs" dict "Method" . "Opts" $opts "TypeMap" $typeMap}}): {{if $method.StreamOutput}}WebrpcStreamController{{else}}{{if $method.Succinct}}Promise<{{(index $method.Inputs 0).Type}}>{{else}}Promise<{{$method.Name}}{{if $opts.compat}}Return{{else}}Response{{end}}>{{end}}{{end}} => {
26+ {{firstLetterToLower .Name}} = ({{template "methodInputs" dict "Method" . "Opts" $opts "TypeMap" $typeMap}}): {{if $method.StreamOutput}}WebrpcStreamController{{else}}{{if $method.Succinct}}Promise<{{(index $method.Outputs 0).Type}}>{{else}}Promise<{{$method.Name}}{{if $opts.compat}}Return{{else}}Response{{end}}>{{end}}{{end}} => {
2727 {{- if $method.StreamOutput }}
2828 const abortController = new AbortController()
2929 const abortSignal = abortController.signal
You can’t perform that action at this time.
0 commit comments