diff --git a/src/hooks/useWindow/useWindow.ts b/src/hooks/useWindow/useWindow.ts index 88b304b..9096441 100644 --- a/src/hooks/useWindow/useWindow.ts +++ b/src/hooks/useWindow/useWindow.ts @@ -10,8 +10,18 @@ const actions: Behavior[] = [ "bringToFront", ]; -export const useWindow = ( +type UseWindow = ( name: string, + shouldDisplayLog?: boolean, + listenToWindowStateChanges?: boolean +) => [ + (overwolf.windows.WindowInfo & WindowBehavior) | undefined, + overwolf.windows.WindowStateChangedEvent | undefined, + () => Promise +]; + +export const useWindow: UseWindow = ( + name, shouldDisplayLog = false, listenToWindowStateChanges = false ) => {