@studiometa/js-toolkit
Version:
A set of useful little bits of JavaScript to boost your project! 🚀
11 lines (10 loc) • 524 B
TypeScript
import type { BaseDecorator, BaseInterface } from '../Base/types.js';
import type { Base, BaseOptions } from '../Base/index.js';
export interface WithFreezedOptionsInterface extends BaseInterface {
readonly $options: Readonly<BaseOptions>;
}
/**
* Freeze the `$options` property to improve performance.
* @link https://js-toolkit.studiometa.dev/api/decorators/withFreezedOptions.html
*/
export declare function withFreezedOptions<S extends Base>(BaseClass: typeof Base): BaseDecorator<WithFreezedOptionsInterface, S>;