interface Env {
    debug?: boolean;
    logLevel?: "error" | "verbose" | "info" | "warning" | "fatal";
    trace?: boolean;
    versions: {
        common: string;
        node?: string;
        react-native?: string;
        web?: string;
    };
    wasm: WebAssemblyFlags;
    webgl: WebGLFlags;
    webgpu: WebGpuFlags;
    [name: string]: unknown;
}

Indexable

[name: string]: unknown

Properties

debug?: boolean

Indicate whether run in debug mode.

Default Value

false

logLevel?: "error" | "verbose" | "info" | "warning" | "fatal"

set the severity level for logging.

Default Value

'warning'

trace?: boolean

set or get a boolean value indicating whether to enable trace.

Default Value

false

versions: {
    common: string;
    node?: string;
    react-native?: string;
    web?: string;
}

Get version of the current package.

Type declaration

  • Readonly common: string
  • Optional Readonly node?: string
  • Optional Readonly react-native?: string
  • Optional Readonly web?: string

Represent a set of flags for WebAssembly

webgl: WebGLFlags

Represent a set of flags for WebGL

webgpu: WebGpuFlags

Represent a set of flags for WebGPU

Generated using TypeDoc