UNPKG

lib0

Version:

isomorphic utility functions

25 lines • 1.14 kB
export const isMac: boolean; /** * True iff a DOM is available — either a real browser, or Node with a jsdom shim installed (see * `src/test-setup.js`). Gate DOM-dependent tests on this so they run in the browser AND under jsdom. */ export const hasDom: boolean; export function hasParam(name: string): boolean; export function getParam(name: string, defaultVal: string): string; export function getVariable(name: string): string | null; export function getConf(name: string): string | null; export function ensureConf(name: string): string; export function hasConf(name: string): boolean; export const production: boolean; /** * Color is enabled by default if the terminal supports it. * * Explicitly enable color using `--color` parameter * Disable color using `--no-color` parameter or using `NO_COLOR=1` environment variable. * `FORCE_COLOR=1` enables color and takes precedence over all. */ export const supportsColor: boolean; export { globalScope as global }; import { globalScope } from './environment.common.js'; export { isNode, isDeno, isBrowser } from "./environment.common.js"; //# sourceMappingURL=environment.d.ts.map