Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actual decorator for TS #32

Open
yeegor opened this issue Jul 1, 2021 · 0 comments
Open

Actual decorator for TS #32

yeegor opened this issue Jul 1, 2021 · 0 comments

Comments

@yeegor
Copy link
Contributor

yeegor commented Jul 1, 2021

Is your proposal related to a problem?

TS supports decorators, JS does not. In TS, we use our "magic comments" implemented for JS.
Multiple decorators (including @namespace) on a single piece of functionality look like this:

@a
@b
/** @namespace A/B/C */
class SomeClass {
  ...
}

Is @namespace decorator commented? Does it work? Looks very ambiguous.

Describe the solution you'd like

In TS files, provide an opportunity to use actual decorator, so that the code above looks like this or similarly:

@a
@b
@namespace('A/B/C')
class SomeClass {
  ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant