Skip to content

Commit

Permalink
fix(useMemory)!: rename type MemoryOptions to UseMemoryOptions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
okxiaoliang4 committed Jul 6, 2022
1 parent 088308e commit 6f7cd20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/useMemory/index.ts
Expand Up @@ -24,7 +24,7 @@ export interface MemoryInfo {
[Symbol.toStringTag]: 'MemoryInfo'
}

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

Expand All @@ -38,7 +38,7 @@ type PerformanceMemory = Performance & {
* @see https://vueuse.org/useMemory
* @param options
*/
export function useMemory(options: MemoryOptions = {}) {
export function useMemory(options: UseMemoryOptions = {}) {
const memory = ref<MemoryInfo>()
const isSupported = typeof performance !== 'undefined' && 'memory' in performance

Expand Down

0 comments on commit 6f7cd20

Please sign in to comment.