Skip to content

Commit 91e3a02

Browse files
jdanyowrvagg
authored andcommitted
refactor createHandler typescript definition (rvagg#32)
1 parent 2431c4e commit 91e3a02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

github-webhook-handler.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ interface handler extends EventEmitter {
1313
(req: IncomingMessage, res: ServerResponse, callback: (err: Error) => void): void;
1414
}
1515

16-
export default function createHandler(options: CreateHandlerOptions): handler;
16+
declare function createHandler(options: CreateHandlerOptions): handler;
17+
18+
export = createHandler;

0 commit comments

Comments
 (0)