File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,18 @@ export class AzureHttpAdapterStatic {
15
15
if ( handler ) {
16
16
return handler ( context , req ) ;
17
17
}
18
- this . createHandler ( createApp ) . then ( fn => fn ( context , req ) ) ;
18
+ this . createHandler ( createApp ) . then ( ( fn ) => fn ( context , req ) ) ;
19
19
}
20
20
21
- private async createHandler ( createApp : ( ) => Promise < INestApplication > ) {
21
+ private async createHandler (
22
+ createApp : ( ) => Promise <
23
+ Omit < INestApplication , 'startAllMicroservicesAsync' | 'listenAsync' >
24
+ >
25
+ ) {
22
26
const app = await createApp ( ) ;
23
27
const adapter = app . getHttpAdapter ( ) ;
24
28
if ( this . hasGetTypeMethod ( adapter ) && adapter . getType ( ) === 'azure-http' ) {
25
- return ( ( adapter as any ) as AzureHttpRouter ) . handle . bind ( adapter ) ;
29
+ return ( adapter as any as AzureHttpRouter ) . handle . bind ( adapter ) ;
26
30
}
27
31
const instance = app . getHttpAdapter ( ) . getInstance ( ) ;
28
32
handler = createHandlerAdapter ( instance ) ;
You can’t perform that action at this time.
0 commit comments