# All files / common/decorators/modules global.decorator.ts

100% Statements 4/4
100% Branches 0/0
100% Functions 2/2
100% Lines 4/4

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    111x

    1x
    2x
    2x

     import { GLOBAL_MODULE_METADATA } from '../../constants';
    /**
     * Makes the module global-scoped.
     * Once imported will be available for all existing modules.
     */
    export function Global(): ClassDecorator {
      return (target: any) => {
        Reflect.defineMetadata(GLOBAL_MODULE_METADATA, true, target);
      };
    }