Skip to content

Commit

Permalink
fix(useIntervalFn)!: rename type IntervalFnOptions to `UseIntervalF…
Browse files Browse the repository at this point in the history
…nOptions` (#1943)
  • Loading branch information
okxiaoliang4 committed Jul 17, 2022
1 parent b1996c0 commit 4bc0fe1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/core/useMemory/index.ts
@@ -1,5 +1,5 @@
import { ref } from 'vue-demi'
import type { IntervalFnOptions } from '@vueuse/shared'
import type { UseIntervalFnOptions } from '@vueuse/shared'
import { useIntervalFn } from '@vueuse/shared'
import { useSupported } from '../useSupported'

Expand All @@ -25,7 +25,7 @@ export interface MemoryInfo {
[Symbol.toStringTag]: 'MemoryInfo'
}

export interface UseMemoryOptions extends IntervalFnOptions {
export interface UseMemoryOptions extends UseIntervalFnOptions {
interval?: number
}

Expand Down
4 changes: 2 additions & 2 deletions packages/shared/useIntervalFn/index.ts
Expand Up @@ -4,7 +4,7 @@ import { tryOnScopeDispose } from '../tryOnScopeDispose'
import type { Fn, MaybeComputedRef, Pausable } from '../utils'
import { isClient } from '../utils'

export interface IntervalFnOptions {
export interface UseIntervalFnOptions {
/**
* Start the timer immediately
*
Expand All @@ -27,7 +27,7 @@ export interface IntervalFnOptions {
* @param interval
* @param options
*/
export function useIntervalFn(cb: Fn, interval: MaybeComputedRef<number> = 1000, options: IntervalFnOptions = {}): Pausable {
export function useIntervalFn(cb: Fn, interval: MaybeComputedRef<number> = 1000, options: UseIntervalFnOptions = {}): Pausable {
const {
immediate = true,
immediateCallback = false,
Expand Down

0 comments on commit 4bc0fe1

Please sign in to comment.