Skip to content

Commit

Permalink
Merge pull request #498 from robbiespeed/patch-1
Browse files Browse the repository at this point in the history
Update README to allow exports before export
  • Loading branch information
pzuraq committed Mar 2, 2023
2 parents 26a9d33 + 2bfa62a commit c39254c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Finally, static fields are executed and applied.
This decorators proposal uses the syntax of the previous Stage 2 decorators proposal. This means that:
- Decorator expressions are restricted to a chain of variables, property access with `.` but not `[]`, and calls `()`. To use an arbitrary expression as a decorator, `@(expression)` is an escape hatch.
- Class expressions may be decorated, not just class declarations.
- Class decorators come after `export` and `default`.
- Class decorators may exclusively come before, or after, `export`/`export default`.

There is no special syntax for defining decorators; any function can be applied as a decorator.

Expand Down

0 comments on commit c39254c

Please sign in to comment.