๐ Operators
March 13, 2026 ยท View on GitHub
Operator - is main building block for ๐Putout plugins. When same logic repeated in couple plugins it is moved out to operator to avoid duplication and reuse logic. When you need something specific, most likely it is already implemented as operator.
declare
When you need to declare something specific, no need to implement this logic again and again: just use @putout/operator-declare. This logic already implemented in next plugins:
- โ declare
- โ tape/declare
- โ putout/declare
- โ nodejs/declare
- โ react-hooks/declare
- โ try-catch/declare
- โ montag/declare
- โ madrun/declare
- โ maybe/declare
This is so common type of plugin that there is type of plugin called Declarator it is appeared in ๐Putout v29.
Built-in operators
Here is list of built-in operators