@destyler/composition
Advanced tools
Comparing version 0.0.1-beta.15 to 0.0.1-beta.16
import * as vue from 'vue'; | ||
import { Ref, WatchOptions, ComputedRef, WritableComputedRef, UnwrapRef, ComponentPublicInstance } from 'vue'; | ||
import * as _destyler_shared from '@destyler/shared'; | ||
import { MaybeRefOrGetter, Type, Direction, MaybeElementRef, AnyFn, Stoppable, MaybeComputedElementRef, FunctionArgs, DebounceFilterOptions, PromisifyFn } from '@destyler/shared'; | ||
import { MaybeRefOrGetter, Type, Direction, MaybeElementRef, AnyFn, Stoppable, MaybeComputedElementRef, FunctionArgs, DebounceFilterOptions, PromisifyFn, Fn, Pausable } from '@destyler/shared'; | ||
@@ -330,2 +330,46 @@ declare function useForwardRef(): (ref: any) => void; | ||
export { type CloneFn, type ConfigurableWindow, type ImageLoadingStatus, type ResizeObserverCallback, type ResizeObserverEntry, type ResizeObserverSize, type UseClonedOptions, type UseClonedReturn, type UseResizeObserverOptions, type UseResizeObserverReturn, type UseTimeoutFnOptions, type UseVModelOptions, cloneFnJSON, defaultWindow, getNextMatch, useArrowNavigation, useCloned, useCollection, useControllable, useCustomElement, useDebounceFn, useDirection, useEmitAsProps, useFocusGuards, useFormControl, useForwardExpose, useForwardProps, useForwardPropsEmits, useForwardRef, useHideOthers, useId, useImageLoadingStatus, useMounted, usePresence, usePrevious, useResizeObserver, useSingleOrMultipleValue, useSize, useStateMachine, useSupported, useTimeoutFn, useTypeahead, useVModel }; | ||
interface UseTimeoutOptions<Controls extends boolean> extends UseTimeoutFnOptions { | ||
/** | ||
* Expose more controls | ||
* | ||
* @default false | ||
*/ | ||
controls?: Controls; | ||
/** | ||
* Callback on timeout | ||
*/ | ||
callback?: Fn; | ||
} | ||
declare function useTimeout(interval?: number, options?: UseTimeoutOptions<false>): ComputedRef<boolean>; | ||
declare function useTimeout(interval: number, options: UseTimeoutOptions<true>): { | ||
ready: ComputedRef<boolean>; | ||
} & Stoppable; | ||
interface UseRafFnCallbackArguments { | ||
/** | ||
* Time elapsed between this and the last frame. | ||
*/ | ||
delta: number; | ||
/** | ||
* Time elapsed since the creation of the web page. See {@link https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp#the_time_origin Time origin}. | ||
*/ | ||
timestamp: DOMHighResTimeStamp; | ||
} | ||
interface UseRafFnOptions extends ConfigurableWindow { | ||
/** | ||
* Start the requestAnimationFrame loop immediately on creation | ||
* | ||
* @default true | ||
*/ | ||
immediate?: boolean; | ||
/** | ||
* The maximum frame per second to execute the function. | ||
* Set to `undefined` to disable the limit. | ||
* | ||
* @default undefined | ||
*/ | ||
fpsLimit?: number; | ||
} | ||
declare function useRafFn(fn: (args: UseRafFnCallbackArguments) => void, options?: UseRafFnOptions): Pausable; | ||
export { type CloneFn, type ConfigurableWindow, type ImageLoadingStatus, type ResizeObserverCallback, type ResizeObserverEntry, type ResizeObserverSize, type UseClonedOptions, type UseClonedReturn, type UseRafFnCallbackArguments, type UseRafFnOptions, type UseResizeObserverOptions, type UseResizeObserverReturn, type UseTimeoutFnOptions, type UseTimeoutOptions, type UseVModelOptions, cloneFnJSON, defaultWindow, getNextMatch, useArrowNavigation, useCloned, useCollection, useControllable, useCustomElement, useDebounceFn, useDirection, useEmitAsProps, useFocusGuards, useFormControl, useForwardExpose, useForwardProps, useForwardPropsEmits, useForwardRef, useHideOthers, useId, useImageLoadingStatus, useMounted, usePresence, usePrevious, useRafFn, useResizeObserver, useSingleOrMultipleValue, useSize, useStateMachine, useSupported, useTimeout, useTimeoutFn, useTypeahead, useVModel }; |
{ | ||
"name": "@destyler/composition", | ||
"version": "0.0.1-beta.15", | ||
"version": "0.0.1-beta.16", | ||
"description": "", | ||
@@ -27,3 +27,3 @@ "author": "Elone Hoo <elonehoo@gmail.com>", | ||
"aria-hidden": "^1.2.3", | ||
"@destyler/shared": "0.0.1-beta.15" | ||
"@destyler/shared": "0.0.1-beta.16" | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
96388
2074
+ Added@destyler/shared@0.0.1-beta.16(transitive)
- Removed@destyler/shared@0.0.1-beta.15(transitive)