node-client icon indicating copy to clipboard operation
node-client copied to clipboard

export RPC functions

Open mhartington opened this issue 5 years ago • 3 comments

This is more a tracking issue.

Pynvim offers the ability to export RPC functions from the plugin decorator. This should be supported by node-client as well.

mhartington avatar Mar 03 '19 15:03 mhartington

what would this look like? I'm not aware of "decorator" in node.js

justinmk avatar Feb 22 '20 23:02 justinmk

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

rhysd avatar Feb 23 '20 00:02 rhysd