@vueuse/shared
Advanced tools
Comparing version 4.4.1 to 4.5.0
@@ -669,3 +669,3 @@ 'use strict'; | ||
timer = null; | ||
// eslint-disable-next-line standard/no-callback-literal | ||
// eslint-disable-next-line node/no-callback-literal | ||
cb(...args); | ||
@@ -672,0 +672,0 @@ }, interval); |
@@ -1,2 +0,3 @@ | ||
import { Ref, WatchSource, ComputedRef, ShallowUnwrapRef as ShallowUnwrapRef$1, WatchOptions, WatchCallback, WatchStopHandle } from 'vue-demi'; | ||
import * as vue_demi from 'vue-demi'; | ||
import { Ref, WatchSource, ComputedRef, WatchOptions, WatchCallback, WatchStopHandle, ShallowUnwrapRef as ShallowUnwrapRef$1 } from 'vue-demi'; | ||
import { Fn as Fn$1 } from '@vueuse/shared'; | ||
@@ -40,3 +41,3 @@ | ||
*/ | ||
declare function controlledRef<T>(initial: T, options?: ControlledRefOptions<T>): ShallowUnwrapRef$1<{ | ||
declare function controlledRef<T>(initial: T, options?: ControlledRefOptions<T>): vue_demi.ShallowUnwrapRef<{ | ||
get: (tracking?: boolean) => T; | ||
@@ -48,3 +49,3 @@ set: (value: T, triggering?: boolean) => void; | ||
lay: (v: T) => void; | ||
}> & Ref<T>; | ||
}> & vue_demi.Ref<T>; | ||
@@ -287,3 +288,3 @@ declare const isClient: boolean; | ||
*/ | ||
declare function syncRef<R extends Ref<any>>(source: R, targets: R | R[], { flush, deep, immediate, }?: SyncRefOptions): WatchStopHandle; | ||
declare function syncRef<R extends Ref<any>>(source: R, targets: R | R[], { flush, deep, immediate, }?: SyncRefOptions): vue_demi.WatchStopHandle; | ||
@@ -319,3 +320,3 @@ interface ThrottledWatchOptions<Immediate> extends WatchOptions<Immediate> { | ||
declare function useCounter(initialValue?: number): { | ||
count: Ref<number>; | ||
count: vue_demi.Ref<number>; | ||
inc: (delta?: number) => number; | ||
@@ -343,6 +344,6 @@ dec: (delta?: number) => number; | ||
start: Fn; | ||
isActive: Ref<boolean>; | ||
isActive: vue_demi.Ref<boolean>; | ||
pause: Fn; | ||
resume: Fn; | ||
counter: Ref<number>; | ||
counter: vue_demi.Ref<number>; | ||
}; | ||
@@ -396,4 +397,4 @@ | ||
declare function useTimeout(interval?: number, immediate?: boolean): { | ||
ready: Ref<boolean>; | ||
isActive: Ref<boolean>; | ||
ready: vue_demi.Ref<boolean>; | ||
isActive: vue_demi.Ref<boolean>; | ||
start: () => void; | ||
@@ -400,0 +401,0 @@ stop: () => void; |
@@ -665,3 +665,3 @@ import { watch, ref, customRef, isVue3, isRef, unref, computed, isVue2, getCurrentInstance, onMounted, nextTick, onUnmounted } from 'vue-demi'; | ||
timer = null; | ||
// eslint-disable-next-line standard/no-callback-literal | ||
// eslint-disable-next-line node/no-callback-literal | ||
cb(...args); | ||
@@ -668,0 +668,0 @@ }, interval); |
@@ -727,3 +727,3 @@ ;(function (window) { | ||
timer = null; | ||
// eslint-disable-next-line standard/no-callback-literal | ||
// eslint-disable-next-line node/no-callback-literal | ||
cb(...args); | ||
@@ -730,0 +730,0 @@ }, interval); |
{ | ||
"name": "@vueuse/shared", | ||
"version": "4.4.1", | ||
"version": "4.5.0", | ||
"main": "./dist/index.cjs.js", | ||
@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108611
2950