@v4fire/core
Version:
V4Fire core library
62 lines (52 loc) • 1.17 kB
text/typescript
/* eslint-disable prefer-rest-params, @typescript-eslint/no-unused-vars-experimental */
/*!
* V4Fire Core
* https://github.com/V4Fire/Core
*
* Released under the MIT license
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/
/**
* [[include:core/decorators/README.md]]
* @packageDocumentation
*/
import * as tools from 'core/functools';
/**
* @deprecated
* @see core/functools
* @decorator
*/
export const once = tools.deprecate(
{
movedTo: 'core/functools'
},
function once(this: unknown, target: object, key: string | symbol, descriptor: PropertyDescriptor): void {
return tools.once.apply(this, arguments);
}
);
/**
* @deprecated
* @see core/functools
* @decorator
*/
export const debounce = tools.deprecate(
{
movedTo: 'core/functools'
},
function debounce(this: unknown, delay?: number): MethodDecorator {
return tools.debounce.apply(this, arguments);
}
);
/**
* @deprecated
* @see core/functools
* @decorator
*/
export const throttle = tools.deprecate(
{
movedTo: 'core/functools'
},
function throttle(this: unknown, delay?: number): MethodDecorator {
return tools.throttle.apply(this, arguments);
}
);