Skip to content

Commit dc57027

Browse files
committed
alias imports so its clear what is what
1 parent d3373d9 commit dc57027

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/use/@netlify/functions.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@ import {
44
OperationContext,
55
} from '../../handler';
66

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';
812

913
/**
1014
* Handler options when using the netlify adapter
1115
*
1216
* @category Server/netlify
1317
*/
1418
export type HandlerOptions<Context extends OperationContext = undefined> =
15-
RawHandlerOptions<HandlerEvent, HandlerContext, Context>;
19+
RawHandlerOptions<NetlifyHandlerEvent, NetlifyHandlerContext, Context>;
1620

1721
/**
1822
* Create a GraphQL over HTTP spec compliant request handler for netlify functions
@@ -21,7 +25,7 @@ export type HandlerOptions<Context extends OperationContext = undefined> =
2125
*/
2226
export function createHandler<Context extends OperationContext = undefined>(
2327
options: HandlerOptions<Context>,
24-
): Handler {
28+
): NetlifyHandler {
2529
const handler = createRawHandler(options);
2630
return async function handleRequest(req, ctx) {
2731
try {

0 commit comments

Comments
 (0)