@vueuse/shared
Advanced tools
Comparing version 10.11.0 to 10.11.1
import * as vue_demi from 'vue-demi'; | ||
import { WatchOptionsBase, Ref, ComputedRef, WritableComputedRef, WatchSource, ComputedGetter, WritableComputedOptions, WatchOptions, InjectionKey, ShallowUnwrapRef as ShallowUnwrapRef$1, inject, provide, UnwrapNestedRefs, UnwrapRef, ToRef, ToRefs, MaybeRef as MaybeRef$1, WatchCallback, WatchStopHandle } from 'vue-demi'; | ||
import { WatchOptionsBase, Ref, ComputedRef, WritableComputedRef, WatchSource, ComputedGetter, WritableComputedOptions, ShallowRef, WatchOptions, InjectionKey, ShallowUnwrapRef as ShallowUnwrapRef$1, inject, provide, UnwrapNestedRefs, UnwrapRef, ToRef, ToRefs, WatchCallback, WatchStopHandle } from 'vue-demi'; | ||
@@ -45,17 +45,9 @@ /** | ||
/** | ||
* Maybe it's a ref, or a plain value | ||
* | ||
* ```ts | ||
* type MaybeRef<T> = T | Ref<T> | ||
* ``` | ||
* Maybe it's a ref, or a plain value. | ||
*/ | ||
type MaybeRef<T> = T | Ref<T>; | ||
type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>; | ||
/** | ||
* Maybe it's a ref, or a plain value, or a getter function | ||
* | ||
* ```ts | ||
* type MaybeRefOrGetter<T> = (() => T) | T | Ref<T> | ComputedRef<T> | ||
* ``` | ||
* Maybe it's a ref, or a plain value, or a getter function. | ||
*/ | ||
type MaybeRefOrGetter<T> = MaybeRef<T> | (() => T); | ||
type MaybeRefOrGetter<T = any> = MaybeRef<T> | ComputedRef<T> | (() => T); | ||
/** | ||
@@ -923,3 +915,3 @@ * Maybe it's a computed ref, or a readonly value, or a getter function | ||
*/ | ||
declare function useCounter(initialValue?: MaybeRef$1<number>, options?: UseCounterOptions): { | ||
declare function useCounter(initialValue?: MaybeRef<number>, options?: UseCounterOptions): { | ||
count: vue_demi.Ref<number>; | ||
@@ -926,0 +918,0 @@ inc: (delta?: number) => number; |
{ | ||
"name": "@vueuse/shared", | ||
"version": "10.11.0", | ||
"version": "10.11.1", | ||
"author": "Anthony Fu <https://github.com/antfu>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
325826
6101