From efaed005b4a858f32d200b5c88e38fb70ca25ce1 Mon Sep 17 00:00:00 2001 From: Andreas Stassivik Date: Fri, 15 Nov 2024 14:18:55 -0800 Subject: [PATCH] export `UseBoolean` subtypes: - UseBooleanGet - UseBooleanToggle --- src/leaf/map/fullscreen/state/use-boolean.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/leaf/map/fullscreen/state/use-boolean.ts b/src/leaf/map/fullscreen/state/use-boolean.ts index 02eebfa..4f4bd27 100644 --- a/src/leaf/map/fullscreen/state/use-boolean.ts +++ b/src/leaf/map/fullscreen/state/use-boolean.ts @@ -1,6 +1,8 @@ +export type UseBooleanGet = () => boolean +export type UseBooleanToggle = () => void export type UseBoolean = { - get: () => boolean - toggle: () => void + get: UseBooleanGet + toggle: UseBooleanToggle } export function useBoolean(initialValue: boolean): UseBoolean {