core/src/plugin/decorators/configurable.ts

12 lines
290 B
TypeScript
Raw Normal View History

import 'reflect-metadata';
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) {
return (constructor: any): void => {
Reflect.defineMetadata('sb:defconf', defconf, constructor);
2020-11-28 13:34:34 +00:00
};
}