JavaScript APIs / oro:constants

oro:constants

oro:constants publishes the runtime’s platform, errno, and low-level constant tables.

Examples#

Use named constants instead of hard-coding errno or signal values:

import { EACCES, SIGTERM } from 'oro:constants'

console.log({ EACCES, SIGTERM })

API reference#

Module specifiers#

oro:constants

TypeScript declarations#

These declarations are generated from the runtime's published TypeScript surface.

oro:constants#

declare module "oro:constants" {
    export * from "oro:fs/constants";
    export * from "oro:window/constants";
    export const E2BIG: any;
    export const EACCES: any;
    export const EADDRINUSE: any;
    export const EADDRNOTAVAIL: any;
    export const EAFNOSUPPORT: any;
    export const EAGAIN: any;
    export const EALREADY: any;
    export const EBADF: any;
    export const EBADMSG: any;
    export const EBUSY: any;
    export const ECANCELED: any;
    export const ECHILD: any;
    export const ECONNABORTED: any;
    export const ECONNREFUSED: any;
    export const ECONNRESET: any;
    export const EDEADLK: any;
    export const EDESTADDRREQ: any;
    export const EDOM: any;
    export const EDQUOT: any;
    export const EEXIST: any;
    export const EFAULT: any;
    export const EFBIG: any;
    export const EHOSTUNREACH: any;
    export const EIDRM: any;
    export const EILSEQ: any;
    export const EINPROGRESS: any;
    export const EINTR: any;
    export const EINVAL: any;
    export const EIO: any;
    export const EISCONN: any;
    export const EISDIR: any;
    export const ELOOP: any;
    export const EMFILE: any;
    export const EMLINK: any;
    export const EMSGSIZE: any;
    export const EMULTIHOP: any;
    export const ENAMETOOLONG: any;
    export const ENETDOWN: any;
    export const ENETRESET: any;
    export const ENETUNREACH: any;
    export const ENFILE: any;
    export const ENOBUFS: any;
    export const ENODATA: any;
    export const ENODEV: any;
    export const ENOENT: any;
    export const ENOEXEC: any;
    export const ENOLCK: any;
    export const ENOLINK: any;
    export const ENOMEM: any;
    export const ENOMSG: any;
    export const ENOPROTOOPT: any;
    export const ENOSPC: any;
    export const ENOSR: any;
    export const ENOSTR: any;
    export const ENOSYS: any;
    export const ENOTCONN: any;
    export const ENOTDIR: any;
    export const ENOTEMPTY: any;
    export const ENOTSOCK: any;
    export const ENOTSUP: any;
    export const ENOTTY: any;
    export const ENXIO: any;
    export const EOPNOTSUPP: any;
    export const EOVERFLOW: any;
    export const EPERM: any;
    export const EPIPE: any;
    export const EPROTO: any;
    export const EPROTONOSUPPORT: any;
    export const EPROTOTYPE: any;
    export const ERANGE: any;
    export const EROFS: any;
    export const ESPIPE: any;
    export const ESRCH: any;
    export const ESTALE: any;
    export const ETIME: any;
    export const ETIMEDOUT: any;
    export const ETXTBSY: any;
    export const EWOULDBLOCK: any;
    export const EXDEV: any;
    export const SIGHUP: any;
    export const SIGINT: any;
    export const SIGQUIT: any;
    export const SIGILL: any;
    export const SIGTRAP: any;
    export const SIGABRT: any;
    export const SIGIOT: any;
    export const SIGBUS: any;
    export const SIGFPE: any;
    export const SIGKILL: any;
    export const SIGUSR1: any;
    export const SIGSEGV: any;
    export const SIGUSR2: any;
    export const SIGPIPE: any;
    export const SIGALRM: any;
    export const SIGTERM: any;
    export const SIGCHLD: any;
    export const SIGCONT: any;
    export const SIGSTOP: any;
    export const SIGTSTP: any;
    export const SIGTTIN: any;
    export const SIGTTOU: any;
    export const SIGURG: any;
    export const SIGXCPU: any;
    export const SIGXFSZ: any;
    export const SIGVTALRM: any;
    export const SIGPROF: any;
    export const SIGWINCH: any;
    export const SIGIO: any;
    export const SIGINFO: any;
    export const SIGSYS: any;
    const _default: any;
    export default _default;
}

See also#

Source repository · Edit this page · View Markdown