@vueuse/shared
Advanced tools
Comparing version 4.0.8 to 4.0.9
@@ -33,4 +33,29 @@ import { Ref, WatchSource, ComputedRef, WatchOptions, WatchCallback, WatchStopHandle, ShallowUnwrapRef as ShallowUnwrapRef$1 } from 'vue-demi'; | ||
/** | ||
* Any function | ||
*/ | ||
declare type Fn = () => void; | ||
/** | ||
* Maybe it's a ref, or not. | ||
* | ||
* ```ts | ||
* type MaybeRef<T> = T | Ref<T> | ||
* ``` | ||
*/ | ||
declare type MaybeRef<T> = T | Ref<T> | ComputedRef<T>; | ||
/** | ||
* Make all the nested attributes of an object or array to MaybeRef<T> | ||
* | ||
* Good for accepting options that will be wrapped with `reactive` or `ref` | ||
* | ||
* ```ts | ||
* UnwrapRef<DeepMaybeRef<T>> === T | ||
* ``` | ||
*/ | ||
declare type DeepMaybeRef<T> = T extends Ref<infer V> ? MaybeRef<V> : T extends Array<any> | object ? { | ||
[K in keyof T]: DeepMaybeRef<T[K]>; | ||
} : MaybeRef<T>; | ||
/** | ||
* Infers the element type of an array | ||
*/ | ||
declare type ElementOf<T> = T extends (infer E)[] ? E : never; | ||
@@ -413,2 +438,2 @@ declare type ShallowUnwrapRef<T> = T extends Ref<infer P> ? P : T; | ||
export { ArrayWhenInstance, BaseWhenInstance, ConfigurableEventFilter, ConfigurableFlush, ConfigurableFlushSync, DebouncedWatchOptions, ElementOf, EventFilter, ExtendRefOptions, Fn, FunctionArgs, FunctionWrapperOptions, IgnorableWatchReturn, IgnoredUpdater, IntervalFnReturn, MapOldSources, MapSources, MaybeRef, Pausable, PausableWatchReturn, Reactify, ReactifyNested, ReactifyObjectOptions, ShallowUnwrapRef, SyncRefOptions, ThrottledWatchOptions, ValueWhenInstance, WatchWithFilterOptions, WhenToMatchOptions, assert, biSyncRef, bypassFilter, clamp, controlledComputed, createFilterWrapper, debounceFilter, debouncedWatch, extendRef, get, ignorableWatch, invoke, isBoolean, isClient, isDef, isFunction, isNumber, isObject, isString, isWindow, makeDestructurable, noop, now, pausableFilter, pausableWatch, promiseTimeout, reactify, reactifyObject, set, syncRef, throttleFilter, throttledWatch, timestamp, tryOnMounted, tryOnUnmounted, useCounter, useDebounce, useDebounceFn, useInterval, useIntervalFn, useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useToggle, watchWithFilter, when }; | ||
export { ArrayWhenInstance, BaseWhenInstance, ConfigurableEventFilter, ConfigurableFlush, ConfigurableFlushSync, DebouncedWatchOptions, DeepMaybeRef, ElementOf, EventFilter, ExtendRefOptions, Fn, FunctionArgs, FunctionWrapperOptions, IgnorableWatchReturn, IgnoredUpdater, IntervalFnReturn, MapOldSources, MapSources, MaybeRef, Pausable, PausableWatchReturn, Reactify, ReactifyNested, ReactifyObjectOptions, ShallowUnwrapRef, SyncRefOptions, ThrottledWatchOptions, ValueWhenInstance, WatchWithFilterOptions, WhenToMatchOptions, assert, biSyncRef, bypassFilter, clamp, controlledComputed, createFilterWrapper, debounceFilter, debouncedWatch, extendRef, get, ignorableWatch, invoke, isBoolean, isClient, isDef, isFunction, isNumber, isObject, isString, isWindow, makeDestructurable, noop, now, pausableFilter, pausableWatch, promiseTimeout, reactify, reactifyObject, set, syncRef, throttleFilter, throttledWatch, timestamp, tryOnMounted, tryOnUnmounted, useCounter, useDebounce, useDebounceFn, useInterval, useIntervalFn, useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useToggle, watchWithFilter, when }; |
{ | ||
"name": "@vueuse/shared", | ||
"version": "4.0.8", | ||
"main": "dist/index.cjs.js", | ||
"types": "dist/index.d.ts", | ||
"module": "dist/index.esm.js", | ||
"unpkg": "dist/index.umd.min.js", | ||
"jsdelivr": "dist/index.umd.min.js", | ||
"version": "4.0.9", | ||
"main": "./dist/index.cjs.js", | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/index.esm.js", | ||
"unpkg": "./dist/index.umd.min.js", | ||
"jsdelivr": "./dist/index.umd.min.js", | ||
"sideEffects": false, | ||
@@ -15,3 +15,3 @@ "files": [ | ||
"type": "git", | ||
"url": "git+https://github.com/antfu/vueuse.git" | ||
"url": "git+https://github.com/vueuse/vueuse.git" | ||
}, | ||
@@ -26,9 +26,16 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/antfu/vueuse/issues" | ||
"url": "https://github.com/vueuse/vueuse/issues" | ||
}, | ||
"homepage": "https://github.com/antfu/vueuse/tree/master/packages/shared#readme", | ||
"homepage": "https://github.com/vueuse/vueuse/tree/master/packages/shared#readme", | ||
"dependencies": { | ||
"vue-demi": "latest" | ||
}, | ||
"funding": "https://github.com/sponsors/antfu" | ||
"funding": "https://github.com/sponsors/antfu", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.esm.js", | ||
"require": "./dist/index.cjs.js" | ||
}, | ||
"./": "./" | ||
} | ||
} |
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
96526
2556