Type alias ConsoleArg

ConsoleArg: undefined | null | Error | boolean | number | string | ConsoleArg[] | {
    [key: string]: ConsoleArg;
}

Because we're passing console arguments across multiple bridges between Electron main, Electron renderer, and QuickJS, we need to restrict the types of the arguments to a subset that can be serialized and deserialized across these boundaries.

Type declaration