Skip to content

Commit

Permalink
馃悰 fix(ternary-dark-mode): export type restore (#569 by @soullivaneuh)
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Apr 4, 2024
1 parent 06dfd5e commit e62c41f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/heavy-rats-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"usehooks-ts": patch
---

Restoration of the useTernaryDarkMode related types
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const COLOR_SCHEME_QUERY = '(prefers-color-scheme: dark)'
const LOCAL_STORAGE_KEY = 'usehooks-ts-ternary-dark-mode'

/** Ternary dark mode options. */
type TernaryDarkMode = 'system' | 'dark' | 'light'
export type TernaryDarkMode = 'system' | 'dark' | 'light'

/** Options for the `useTernaryDarkMode` hook. */
type TernaryDarkModeOptions = {
export type TernaryDarkModeOptions = {
/**
* The default value for the dark mode.
* @default 'system'
Expand All @@ -29,7 +29,7 @@ type TernaryDarkModeOptions = {
}

/** Represents the return type of the `useTernaryDarkMode` hook. */
type TernaryDarkModeReturn = {
export type TernaryDarkModeReturn = {
/** The current state of the dark mode. */
isDarkMode: boolean
/** The current state of the dark mode. */
Expand Down

0 comments on commit e62c41f

Please sign in to comment.