File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable */
2
2
// node-ts v1.0.0 6713366104e62b8479d628a193e2a7ca03f37edc
3
3
// --
4
- // Code generated by webrpc-gen@v0.20.3-2-g18c094a with ../../../gen-typescript generator. DO NOT EDIT.
4
+ // Code generated by webrpc-gen@v0.21.0-1-g96d144e with ../../../gen-typescript generator. DO NOT EDIT.
5
5
//
6
6
// webrpc-gen -schema=service.ridl -target=../../../gen-typescript -server -out=./server/server.gen.ts
7
7
8
8
export const WebrpcHeader = "Webrpc"
9
9
10
- export const WebrpcHeaderValue = "webrpc@v0.20.3-2-g18c094a ;gen-typescript@unknown;node-ts@v1.0.0"
10
+ export const WebrpcHeaderValue = "webrpc@v0.21.0-1-g96d144e ;gen-typescript@unknown;node-ts@v1.0.0"
11
11
12
12
// WebRPC description and code-gen version
13
13
export const WebRPCVersion = "v1"
Original file line number Diff line number Diff line change 1
1
/* eslint-disable */
2
2
// node-ts v1.0.0 6713366104e62b8479d628a193e2a7ca03f37edc
3
3
// --
4
- // Code generated by webrpc-gen@v0.20.3-2-g18c094a with ../../../gen-typescript generator. DO NOT EDIT.
4
+ // Code generated by webrpc-gen@v0.21.0-1-g96d144e with ../../../gen-typescript generator. DO NOT EDIT.
5
5
//
6
6
// webrpc-gen -schema=service.ridl -target=../../../gen-typescript -client -out=./webapp/client.gen.ts
7
7
8
8
export const WebrpcHeader = "Webrpc"
9
9
10
- export const WebrpcHeaderValue = "webrpc@v0.20.3-2-g18c094a ;gen-typescript@unknown;node-ts@v1.0.0"
10
+ export const WebrpcHeaderValue = "webrpc@v0.21.0-1-g96d144e ;gen-typescript@unknown;node-ts@v1.0.0"
11
11
12
12
// WebRPC description and code-gen version
13
13
export const WebRPCVersion = "v1"
@@ -157,7 +157,7 @@ export class ExampleService implements ExampleService {
157
157
}
158
158
159
159
const createHTTPRequest = ( body : object = { } , headers : object = { } , signal : AbortSignal | null = null ) : object => {
160
- const reqHeaders = { ...headers , 'Content-Type' : 'application/json' }
160
+ const reqHeaders : { [ key : string ] : string } = { ...headers , 'Content-Type' : 'application/json' }
161
161
reqHeaders [ WebrpcHeader ] = WebrpcHeaderValue
162
162
163
163
return {
Original file line number Diff line number Diff line change 1
1
/* eslint-disable */
2
2
// webrpc-sse-chat v1.0.0 a799dc63b082644f5d003c8881424546aee23a2c
3
3
// --
4
- // Code generated by webrpc-gen@v0.20.3-2-g18c094a with ../../ generator. DO NOT EDIT.
4
+ // Code generated by webrpc-gen@v0.21.0-1-g96d144e with ../../ generator. DO NOT EDIT.
5
5
//
6
6
// webrpc-gen -schema=service.ridl -target=../../ -client -out=./webapp/client.gen.ts
7
7
8
8
export const WebrpcHeader = "Webrpc"
9
9
10
- export const WebrpcHeaderValue = "webrpc@v0.20.3-2-g18c094a ;@unknown;webrpc-sse-chat@v1.0.0"
10
+ export const WebrpcHeaderValue = "webrpc@v0.21.0-1-g96d144e ;@unknown;webrpc-sse-chat@v1.0.0"
11
11
12
12
// WebRPC description and code-gen version
13
13
export const WebRPCVersion = "v1"
@@ -285,7 +285,7 @@ const sseResponse = async (
285
285
286
286
287
287
const createHTTPRequest = ( body : object = { } , headers : object = { } , signal : AbortSignal | null = null ) : object => {
288
- const reqHeaders = { ...headers , 'Content-Type' : 'application/json' }
288
+ const reqHeaders : { [ key : string ] : string } = { ...headers , 'Content-Type' : 'application/json' }
289
289
reqHeaders [ WebrpcHeader ] = WebrpcHeaderValue
290
290
291
291
return {
Original file line number Diff line number Diff line change 3
3
{{- $schemaErrors := .SchemaErrors -}}
4
4
{{- $opts := .Opts -}}
5
5
const createHTTPRequest = (body: object = {}, headers: object = {}, signal: AbortSignal | null = null): object => {
6
- const reqHeaders = { ...headers, 'Content-Type': 'application/json' }
6
+ const reqHeaders: {[key: string]: string} = { ...headers, 'Content-Type': 'application/json' }
7
7
{{- if eq $opts.webrpcHeader true }}
8
8
reqHeaders[WebrpcHeader] = WebrpcHeaderValue
9
9
{{- end }}
You can’t perform that action at this time.
0 commit comments