Skip to content

Commit

Permalink
refactor(useColorMode): remove unnecessary default value
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
dfreier and antfu committed Jun 21, 2022
1 parent 85f8bb9 commit 84d2db3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/useColorMode/index.ts
Expand Up @@ -67,7 +67,7 @@ export interface UseColorModeOptions<T extends string = BasicColorSchema> extend
* When set to `true`, preferred mode won't be translated into `light` or `dark`.
* This is useful when the fact that `auto` mode was selected needs to be known.
*
* @default false
* @default undefined
*/
emitAuto?: boolean
}
Expand All @@ -87,7 +87,7 @@ export function useColorMode<T extends string = BasicColorSchema>(options: UseCo
storageKey = 'vueuse-color-scheme',
listenToStorageChanges = true,
storageRef,
emitAuto = false,
emitAuto,
} = options

const modes = {
Expand Down

0 comments on commit 84d2db3

Please sign in to comment.