Skip to content

Commit

Permalink
fix(useMagicKeys)!: rename type MagicKeys to UseMagicKeysReturn (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
okxiaoliang4 committed Jul 12, 2022
1 parent fc03c0f commit 6cefd6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/useMagicKeys/index.ts
Expand Up @@ -56,7 +56,7 @@ export interface MagicKeysInternal {
current: Set<string>
}

export type MagicKeys<Reactive extends Boolean> =
export type UseMagicKeysReturn<Reactive extends Boolean> =
Readonly<
Omit<Reactive extends true
? Record<string, boolean>
Expand All @@ -70,8 +70,8 @@ export type MagicKeys<Reactive extends Boolean> =
*
* @see https://vueuse.org/useMagicKeys
*/
export function useMagicKeys(options?: UseMagicKeysOptions<false>): MagicKeys<false>
export function useMagicKeys(options: UseMagicKeysOptions<true>): MagicKeys<true>
export function useMagicKeys(options?: UseMagicKeysOptions<false>): UseMagicKeysReturn<false>
export function useMagicKeys(options: UseMagicKeysOptions<true>): UseMagicKeysReturn<true>
export function useMagicKeys(options: UseMagicKeysOptions<boolean> = {}): any {
const {
reactive: useReactive = false,
Expand Down

0 comments on commit 6cefd6c

Please sign in to comment.