UNPKG

jodit

Version:

Jodit is an awesome and useful wysiwyg editor with filebrowser

17 lines (16 loc) 902 B
/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net */ /** * [[include:core/decorators/debounce/README.md]] * @packageDocumentation * @module decorators/debounce */ import type { DecoratorHandler, IAsyncParams, IViewComponent } from "../../../types/index"; export declare function debounce<V extends IViewComponent = IViewComponent>(timeout?: number | ((ctx: V) => number | IAsyncParams) | IAsyncParams, firstCallImmediately?: boolean, method?: 'debounce' | 'throttle'): DecoratorHandler; /** * Wrap function in throttle wrapper */ export declare function throttle<V extends IViewComponent = IViewComponent>(timeout?: number | ((ctx: V) => number | IAsyncParams) | IAsyncParams, firstCallImmediately?: boolean): DecoratorHandler;