foo-webview-sdk
    Preparing search index...

    Variable consoleApiConst

    consoleApi: {
        error: (
            message: string,
            ...args: JsonValue[],
        ) => Promise<ConsoleErrorResponse>;
        log: (message: string, ...args: JsonValue[]) => Promise<ConsoleLogResponse>;
        warn: (
            message: string,
            ...args: JsonValue[],
        ) => Promise<ConsoleWarnResponse>;
    } = ...

    consoleApi — fb2k console-window logging.

    Each method writes one line. With only message, the line is the message as it is. With extra values, the line is the message followed by each value, separated by spaces: strings as they are, any other JSON value as its JSON text, like the browser console.

    NB: file is named consoleApi.ts to avoid shadowing the global console symbol in this module scope; consumed as fb.console on the runtime aggregate object.

    Type Declaration

    • error: (message: string, ...args: JsonValue[]) => Promise<ConsoleErrorResponse>

      Writes an error line prefixed with [WebView][ERROR].

    • log: (message: string, ...args: JsonValue[]) => Promise<ConsoleLogResponse>

      Writes a line prefixed with [WebView].

    • warn: (message: string, ...args: JsonValue[]) => Promise<ConsoleWarnResponse>

      Writes a warning line prefixed with [WebView][WARN].