module import * as g from 'window-or-global' ; import { ControllerInvalidError } from '@worldsibu/convector-core-errors' ; import 'reflect-metadata' ; hidden export const controllerMetadataKey = g . ConvectorControllerMetadataKey || Symbol ( 'controller' ) ; g . ConvectorControllerMetadataKey = controllerMetadataKey ; decorator export function Controller ( namespace ) { return ctor => { if ( typeof ctor !== 'function' ) { throw new ControllerInvalidError ( namespace ) ; } Reflect . defineMetadata ( controllerMetadataKey , namespace , ctor ) ; } ; }