Decorators on functions

后端 未结 3 1297
有刺的猬
有刺的猬 2021-01-31 14:31

I see that babel.js decorators (available in \"stage 1\") implement the spec at https://github.com/wycats/javascript-decorators. It appears that decorators are limited to (1) cl

3条回答
  •  清歌不尽
    2021-01-31 14:56

    You certainly have a point here.

    But as neo_blackcap pointed out, function decorator are not part of the ES7 decorators draft.

    So, the best thing you can do is to start discussion on the corresponding tracker to attract community attention to your proposal.

    ES7 decorators are on their first stage of development second stage of development, meaning that their API is still under development and could undergo any change.

提交回复
热议问题