Skip to content
File

Blob: src/node/internal/process.d.ts

typescript31 lines
1// Copyright (c) 2026 Cloudflare, Inc.
2// Licensed under the Apache 2.0 license found in the LICENSE file or at:
3// https://opensource.org/licenses/Apache-2.0
4 
5export function getEnvObject(): Record<string, string>;
6export function getBuiltinModule(id: string): object;
7export function exitImpl(code: number): void;
8export function getCwd(): string;
9export function setCwd(path: string): void;
10export const versions: Record<string, string>;
11export const platform: string;
12 
13declare global {
14 const Cloudflare: {
15 readonly compatibilityFlags: Record<string, boolean> & {
16 enable_streams_nodejs_v24_compat: boolean;
17 };
18 };
19}
20 
21interface ErrorWithDetail extends Error {
22 detail?: unknown;
23}
24 
25interface EmitWarningOptions {
26 type?: string | undefined;
27 code?: string | undefined;
28 ctor?: ErrorConstructor | undefined;
29 detail?: string | undefined;
30}