Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@destyler/composition

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@destyler/composition - npm Package Compare versions

Comparing version 0.0.1-beta.15 to 0.0.1-beta.16

48

dist/index.d.ts
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 };

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc