Skip to content

error TS1206: Decorators are not valid here? #3661

@matthewjh

Description

@matthewjh

Hi,

What's the problem here? I can't see it.

@Provide(Log)
function getKarmaLoggerInstance() {
    return logger.create('preprocessor-x');
}

This produces the following compiler error:

error TS1206: Decorators are not valid here.

My only guess is that it's on a function, but aren't decorators supposed to be applicable to functions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    By DesignDeprecated - use "Working as Intended" or "Design Limitation" instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions