src/module/index.ts
Function moduleDecoratorFactory
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function moduleDecoratorFactory<S>(moduleOptions: ModuleOptions) {
return function <TFunction extends Function>(constructor: TFunction): TFunction | void {
const module: Function & Mod<S, any> = constructor
const stateFactory = () => sf(module)