@sussudio/base
Version:
Internal APIs for VS Code's utilities and user interface building blocks.
31 lines (29 loc) • 1.11 kB
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* Provides safe access to the `cwd` property in node.js, sandboxed or web
* environments.
*
* Note: in web, this property is hardcoded to be `/`.
*/
export declare const cwd: () => string;
/**
* Provides safe access to the `env` property in node.js, sandboxed or web
* environments.
*
* Note: in web, this property is hardcoded to be `{}`.
*/
export declare const env: import('./platform.mjs').IProcessEnvironment;
/**
* Provides safe access to the `platform` property in node.js, sandboxed or web
* environments.
*/
export declare const platform: string;
/**
* Provides safe access to the `arch` method in node.js, sandboxed or web
* environments.
* Note: `arch` is `undefined` in web
*/
export declare const arch: string | undefined;