Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(useIntervalFn)!: rename type IntervalFnOptions to UseIntervalFnOptions #1943

Merged
merged 1 commit into from Jul 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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