core/src/plugin/decorators/configurable.ts

11 lines
289 B
TypeScript
Raw Normal View History

2020-11-28 13:34:34 +00:00
2020-11-29 19:23:43 +00:00
/**
* 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 => {
2020-11-28 13:34:34 +00:00
constructor.prototype.__defconf = defconf;
};
}