static-inject
Simple dependency injector container.
instalation
npm install static-inject
yarn add static-inject
Sample
Also see src/test.ts
; // define interface as classes (in order to have a compiled names) : string throw 'Not implemented' @ implements Port : string return text; @ private port! : Port; { if thisport != "upper" throw "Test failed"; console; } Container;// orContainer;// orContainer; const lib = ;lib;