UNPKG

@sberdevices/plasma-temple

Version:

SberDevices CanvasApp Templates.

10 lines 562 B
import React from 'react'; import { Cancelable, ThrottleSettings } from 'lodash'; import throttle from 'lodash.throttle'; declare type ThrottleFnArgs = Parameters<typeof throttle>; declare type ThrottleFnType = ThrottleFnArgs[0]; export declare const THROTTLE_WAIT = 450; export declare const THROTTLE_PARAMS: ThrottleSettings; export declare function useThrottledCallback<T extends ThrottleFnType>(fn: T, dependencies: React.DependencyList, wait?: number, params?: ThrottleSettings): T & Cancelable; export {}; //# sourceMappingURL=useThrottledCallback.d.ts.map