zazoomauro / node-dependency-injection

The NodeDependencyInjection component allows you to standarize and centralize the way objects are constructed in your application.
https://github.com/zazoomauro/node-dependency-injection/wiki
MIT License
280 stars 34 forks source link

Typescript compiler pass process not found #168

Closed zazoomauro closed 2 years ago

zazoomauro commented 2 years ago

When a class is defined with Typescript, compiler pass throws an exception if process method is not static FIX: Process method can be defined as static or not static as you wish

zazoomauro commented 2 years ago

Compiler pass should be passed like:

container.addCompilerPass(new CustomCompilerPass())