diff --git a/src/event/event.ts b/src/event/event.ts index a848677a..684e7f56 100644 --- a/src/event/event.ts +++ b/src/event/event.ts @@ -175,10 +175,6 @@ export class H3Event< } } -export function isEvent(input: any): input is H3Event { - return "__is_event__" in input; -} - export function createEvent( req: NodeIncomingMessage, res: NodeServerResponse diff --git a/src/event/utils.ts b/src/event/utils.ts index 9b489ebd..c4a6cc70 100644 --- a/src/event/utils.ts +++ b/src/event/utils.ts @@ -36,6 +36,8 @@ export function isEventHandler(input: any): input is EventHandler { return "__is_handler__" in input; } +export const isEvent = isEventHandler; + export function toEventHandler( input: any, _?: any,