UNPKG

@studiometa/js-toolkit

Version:

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

7 lines (6 loc) • 319 B
import type { BaseDecorator, BaseInterface } from '../Base/types.js'; import type { Base, BaseProps } from '../Base/index.js'; /** * Override the name of the given component. */ export declare function withName<S extends Base = Base>(BaseClass: typeof Base, name: string): BaseDecorator<BaseInterface, S, BaseProps>;