mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 05:00:16 +00:00
4bdfc12b79
Release Notes: - N/A --------- Co-authored-by: Marshall <marshall@zed.dev> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
13 lines
594 B
Text
13 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>;
|
|
}
|