Skip to content

Decorator[@targetName] error TS1239: Unable to resolve signature of parameter decorator when called as an expression #1556

@wangsyiiz

Description

@wangsyiiz

Expected Behavior

There should not be any error occurred when @targetName be used at constructor

Current Behavior

constructor(@inject("IService") @targetName("queueService") ticketQueue: IService) { }

error TS1239: Unable to resolve signature of parameter decorator when called as an expression

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Version used: 6.0.2
  • Environment name and version: 16.20.2
  • Operating System and version: win11
  • Link to your project:

Stack trace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions