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 @@ -4,15 +4,19 @@ import {
4
4
OperationContext ,
5
5
} from '../../handler' ;
6
6
7
- import type { Handler , HandlerEvent , HandlerContext } from '@netlify/functions' ;
7
+ import type {
8
+ Handler as NetlifyHandler ,
9
+ HandlerEvent as NetlifyHandlerEvent ,
10
+ HandlerContext as NetlifyHandlerContext ,
11
+ } from '@netlify/functions' ;
8
12
9
13
/**
10
14
* Handler options when using the netlify adapter
11
15
*
12
16
* @category Server/netlify
13
17
*/
14
18
export type HandlerOptions < Context extends OperationContext = undefined > =
15
- RawHandlerOptions < HandlerEvent , HandlerContext , Context > ;
19
+ RawHandlerOptions < NetlifyHandlerEvent , NetlifyHandlerContext , Context > ;
16
20
17
21
/**
18
22
* Create a GraphQL over HTTP spec compliant request handler for netlify functions
@@ -21,7 +25,7 @@ export type HandlerOptions<Context extends OperationContext = undefined> =
21
25
*/
22
26
export function createHandler < Context extends OperationContext = undefined > (
23
27
options : HandlerOptions < Context > ,
24
- ) : Handler {
28
+ ) : NetlifyHandler {
25
29
const handler = createRawHandler ( options ) ;
26
30
return async function handleRequest ( req , ctx ) {
27
31
try {
You can’t perform that action at this time.
0 commit comments