diff --git a/src/event-handler/index.ts b/src/event-handler/index.ts index 0150f9ee..41058912 100644 --- a/src/event-handler/index.ts +++ b/src/event-handler/index.ts @@ -14,7 +14,7 @@ import { import { receiverHandle as receive } from "./receive"; import { removeListener } from "./remove-listener"; -interface EventHandler { +interface EventHandler { on( event: E | E[], callback: HandlerFunction @@ -28,7 +28,9 @@ interface EventHandler { receive(event: EmitterWebhookEvent): Promise; } -export function createEventHandler(options: Options): EventHandler { +export function createEventHandler( + options: Options +): EventHandler { const state: State = { hooks: {}, };