Skip to content

Named injections do not work #13

@nsainaney

Description

@nsainaney

WIth inversify-props@1.4.9

import { inject } from 'inversify-props'
import { named } from 'inversify'

class ...
    @inject(Symbols.feathers)
    @named('hubService')
    feathers

does not work but

import { container } from 'inversify-props'
...
this.feathers = container.getNamed(Symbols.feathers, 'hubService')

does work

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions