core/src/plugin/decorators/configurable.ts

11 lines
289 B
TypeScript

/**
* Declare this plugin as one that the user can configure.
* @param defconf Default configuration
*/
export function Configurable(defconf: any): (...arg: any[]) => any {
return (constructor: (...arg: any[]) => any): void => {
constructor.prototype.__defconf = defconf;
};
}