@studiometa/js-toolkit
Version:
A set of useful little bits of JavaScript to boost your project! 🚀
8 lines (7 loc) • 420 B
TypeScript
import type { Options as DeepmergeOptions } from 'deepmerge';
import type { BaseDecorator, BaseInterface } from '../Base/types.js';
import type { Base, BaseConfig } from '../Base/index.js';
/**
* Extends the configuration of an existing class.
*/
export declare function withExtraConfig<S extends Base>(BaseClass: typeof Base, config: Partial<BaseConfig>, options?: DeepmergeOptions): BaseDecorator<BaseInterface, S>;