12 lines
322 B
TypeScript
12 lines
322 B
TypeScript
import 'reflect-metadata';
|
|
|
|
/**
|
|
* Declare this plugin as one that utilises services.
|
|
* @param injectedService Service class, usually a Protocol
|
|
*/
|
|
export function InjectService(injectedService: any) {
|
|
return (constructor: any): void => {
|
|
Reflect.defineMetadata('sb:service', injectedService, constructor);
|
|
};
|
|
}
|