From b2d430eb1e25e44b28f6d46125b0c7e9ea15b47e Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Mon, 3 Jan 2022 03:30:14 +0100 Subject: [PATCH] Export `on` method callback function type --- app/javascript/retrospring/utilities/on.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/retrospring/utilities/on.ts b/app/javascript/retrospring/utilities/on.ts index 6f29accd..fc778311 100644 --- a/app/javascript/retrospring/utilities/on.ts +++ b/app/javascript/retrospring/utilities/on.ts @@ -1,4 +1,4 @@ -type OnCallbackFunction = (event: Event) => void; +export type OnCallbackFunction = (event: Event) => void; export function on(type: string, selector: string, callback: OnCallbackFunction): void { document.addEventListener(type, (event: Event) => {