@selldone/sdk-storefront
Version:
A TypeScript SDK to connect to your shop and build a fully functional storefront and website by simply developing a frontend web application. All backend operations are seamlessly managed by the serverless Selldone solution.
16 lines (15 loc) • 896 B
TypeScript
/**
* Creates a debounced function that delays invoking `func` until after `wait` milliseconds have elapsed
* since the last time the debounced function was invoked. The function is executed immediately if `immediate` is true.
* Subsequent calls to the debounced function are debounced until the wait duration has passed.
*
* @param {(...args: any[]) => void} func - The function to debounce.
* @param {number} wait - The number of milliseconds to delay.
* @param {boolean} immediate - Whether to trigger the function on the leading edge instead of the trailing edge of the wait interval.
* @returns {(...args: any[]) => void} A new debounced function.
*/
export declare function debounceSearch(func: (...args: any[]) => void, wait?: number, immediate?: boolean): (...args: any[]) => void;
declare const _default: {
debounceSearch: typeof debounceSearch;
};
export default _default;