tjoskar/autoinject

Support inject parameters in constructor

Closed this issue · 1 comments

Support this:

let myObject = {};
register({myObject});

class {
    constructor(@inject('myObject') myObject) {}
}

Why not:

let myObject = {};

class {
    constructor(@inject(myObject) _myObject) {}
}

Much cleaner!