4
4
5
5
``` ts
6
6
7
- /// <reference types = " node" />
8
-
9
7
import { CloudEventV1 as CloudEvent } from ' cloudevents' ;
10
8
import { Request as Request_3 } from ' express' ;
11
9
import { Response as Response_2 } from ' express' ;
@@ -59,7 +57,7 @@ export interface EventFunctionWithCallback {
59
57
}
60
58
61
59
// @public
62
- export type HandlerFunction <T = unknown , U = unknown > = HttpFunction | EventFunction | EventFunctionWithCallback | CloudEventFunction <T > | CloudEventFunctionWithCallback <T > | TypedFunction < T , U > ;
60
+ export type HandlerFunction <T = unknown , U = unknown > = HttpFunction | EventFunction | EventFunctionWithCallback | CloudEventFunction <T > | CloudEventFunctionWithCallback <T >;
63
61
64
62
// @public
65
63
export const http: (functionName : string , handler : HttpFunction ) => void ;
@@ -70,12 +68,6 @@ export interface HttpFunction {
70
68
(req : Request_2 , res : Response_2 ): any ;
71
69
}
72
70
73
- // @public
74
- export interface InvocationFormat <T , U > {
75
- deserializeRequest(request : InvocationRequest ): T | Promise <T >;
76
- serializeResponse(responseWriter : InvocationResponse , response : U ): void | Promise <void >;
77
- }
78
-
79
71
// @public
80
72
export interface InvocationRequest {
81
73
body(): string | Buffer ;
@@ -89,14 +81,6 @@ export interface InvocationResponse {
89
81
write(data : string | Buffer ): void ;
90
82
}
91
83
92
- // @public
93
- export class JsonInvocationFormat <T , U > implements InvocationFormat <T , U > {
94
- // (undocumented)
95
- deserializeRequest(request : InvocationRequest ): T ;
96
- // (undocumented)
97
- serializeResponse(responseWriter : InvocationResponse , response : U ): void ;
98
- }
99
-
100
84
// @public
101
85
export type LegacyCloudFunctionsContext = CloudFunctionsContext | Data ;
102
86
@@ -121,19 +105,6 @@ export { Request_2 as Request }
121
105
122
106
export { Response_2 as Response }
123
107
124
- // Warning: (ae-internal-missing-underscore) The name "typed" should be prefixed with an underscore because the declaration is marked as @internal
125
- //
126
- // @internal
127
- export const typed: <T , U >(functionName : string , handler : TypedFunction <T , U > | ((req : T ) => U | Promise <U >)) => void ;
128
-
129
- // @public
130
- export interface TypedFunction <T = unknown , U = unknown > {
131
- // (undocumented)
132
- format: InvocationFormat <T , U >;
133
- // (undocumented)
134
- handler: (req : T ) => U | Promise <U >;
135
- }
136
-
137
108
// (No @packageDocumentation comment for this package)
138
109
139
110
```
0 commit comments