Skip to content

Commit

Permalink
export UseBoolean subtypes:
Browse files Browse the repository at this point in the history
- UseBooleanGet
- UseBooleanToggle
  • Loading branch information
Stassi committed Nov 15, 2024
1 parent 8c39d03 commit efaed00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/leaf/map/fullscreen/state/use-boolean.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit efaed00

Please sign in to comment.