Skip to content

Decorators not allowed in JS even with 'experimentalDecorators' set #8905

@DanielRosenwasser

Description

@DanielRosenwasser
  1. Create a new folder.
  2. Add a tsconfig.json/jsconfig.json.
  3. Add "experimentalDecorators": true.
  4. Create a new .js file that has a decorated class.

Expected: No error.
Actual: Error that you need to add "experimentalDecorators": true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions