You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decorator is a feature proposed to ECMAScript, but it's still on stage2 and not implemented in V8. TypeScript offers to transpile decorators via --experimentalDecorators compiler flag. So the decorator is only usable when this package is used via TypeScript.
Activity
[-]Supporting RPC functions[/-][+]export RPC functions[/+]justinmk commentedon Feb 22, 2020
what would this look like? I'm not aware of "decorator" in node.js
rhysd commentedon Feb 23, 2020
Decorator is a feature proposed to ECMAScript, but it's still on stage2 and not implemented in V8. TypeScript offers to transpile decorators via
--experimentalDecorators
compiler flag. So the decorator is only usable when this package is used via TypeScript.https://www.typescriptlang.org/docs/handbook/decorators.html
justinmk commentedon Apr 17, 2024
Instead of a decorator, this should be easy to do with a simple util function, which the node plugin can call at startup. See neovim/neovim#27949