Skip to content

Commit

Permalink
Update README to allow exports before export
Browse files Browse the repository at this point in the history
Based on consensus of tc39#69
  • Loading branch information
robbiespeed committed Mar 2, 2023
1 parent 26a9d33 commit 4a5e75e
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 `export` or after `export [default]`.

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

Expand Down

0 comments on commit 4a5e75e

Please sign in to comment.