Skip to content

Decorating interface methods. #6818

@d180cf

Description

@d180cf

Sometimes it's useful to have methods with properties attached:

Foo.prototype.bar = bar;
bar.tag = 123;

The corresponding interface could look like:

interface Foo {
  @tagged
  bar(): void;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already createdNeeds More InfoThe issue still hasn't been fully clarified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions