Skip to content

Autowiring with public and protected constructor properties #204

@zazoomauro

Description

@zazoomauro

At the moment, Autowiring only works with private constructor properties.

Make it working with the following examples:

interface TestInterface {
}

class ExampleClass {
  constructor(protected readonly parameter: TestInterface) {
  }
}

or

interface TestInterface {
}

class ExampleClass {
  private thing: TestInterface;
  constructor(parameter: TestInterface) {
    this.thing = parameter;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions