auto-accessor
A class field declared with the accessor keyword, which creates a hidden storage slot plus a getter and setter for it automatically.
In more detail
Decorators can then intercept every read and write of the field. It is part of the standard decorators proposal.
Related terms
- getter and setter — Special methods that run when a property is read (getter) or assigned (setter), so it looks like a field but runs code.
- decorator — A line starting with @ placed above a function or class that wraps it to add behaviour or information.
Taught in
- Modern Decorators: Stage 3 Standards And Class Metadata — Production TypeScript