44
55``` ts
66
7- /// <reference types = " node" />
8-
97import { CloudEventV1 as CloudEvent } from ' cloudevents' ;
108import { Request as Request_3 } from ' express' ;
119import { Response as Response_2 } from ' express' ;
@@ -59,7 +57,7 @@ export interface EventFunctionWithCallback {
5957}
6058
6159// @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 >;
6361
6462// @public
6563export const http: (functionName : string , handler : HttpFunction ) => void ;
@@ -70,12 +68,6 @@ export interface HttpFunction {
7068 (req : Request_2 , res : Response_2 ): any ;
7169}
7270
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-
7971// @public
8072export interface InvocationRequest {
8173 body(): string | Buffer ;
@@ -89,14 +81,6 @@ export interface InvocationResponse {
8981 write(data : string | Buffer ): void ;
9082}
9183
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-
10084// @public
10185export type LegacyCloudFunctionsContext = CloudFunctionsContext | Data ;
10286
@@ -121,19 +105,6 @@ export { Request_2 as Request }
121105
122106export { Response_2 as Response }
123107
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-
137108// (No @packageDocumentation comment for this package)
138109
139110```
0 commit comments