UNPKG

@studiometa/js-toolkit

Version:

A set of useful little bits of JavaScript to boost your project! 🚀

10 lines (9 loc) • 443 B
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. */ export declare function withFreezedOptions<S extends Base>(BaseClass: typeof Base): BaseDecorator<WithFreezedOptionsInterface, S>;