mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-15 14:47:30 +00:00
14 lines
594 B
Text
14 lines
594 B
Text
|
interface nodejs {
|
||
|
/// Returns the path to the Node binary used by Zed.
|
||
|
node-binary-path: func() -> result<string, string>;
|
||
|
|
||
|
/// Returns the latest version of the given NPM package.
|
||
|
npm-package-latest-version: func(package-name: string) -> result<string, string>;
|
||
|
|
||
|
/// Returns the installed version of the given NPM package, if it exists.
|
||
|
npm-package-installed-version: func(package-name: string) -> result<option<string>, string>;
|
||
|
|
||
|
/// Installs the specified NPM package.
|
||
|
npm-install-package: func(package-name: string, version: string) -> result<_, string>;
|
||
|
}
|