Implement class property decorators
See original GitHub issueAt the moment babel-plugin-flow-runtime
generates decorators for typed class properties, but t.decorate()
is not actually implemented yet. Need to implement it in a way that does not confound e.g. mobx
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Python Property Decorator - TutorialsTeacher
The @property decorator is a built-in decorator in Python for the property() function. Use @property decorator on any method in the class to...
Read more >Documentation - Decorators - TypeScript
A Decorator is a special kind of declaration that can be attached to a class declaration, method, accessor, property, or parameter. Decorators use...
Read more >Python Property Decorator - GeeksforGeeks
A decorator feature in Python wraps in a function, appends several functionalities to existing code and then returns it.
Read more >Python @property Decorator (With Examples) - Programiz
In this tutorial, you will learn about Python @property decorator; a pythonic way to use getters and setters in object-oriented programming.
Read more >Start Implementing Your Own Typescript Property Decorators
A property decorator can only be used to observe that a property of a specific name has been declared for a class. A...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gajus looks like you need to add
babel-plugin-transform-decorators-legacy
to your list of plugins.We currently have to use decorator syntax for this transform just in case the user themselves is using decorators, it would be nicer if we detected their presence and fell back to something that didn’t depend on them.
No worries, I know the feeling.