@duckduckgo/content-scope-scripts
    Preparing search index...

    This describes the messages that will be sent to the native layer,

    Index

    Properties

    notify: <
        Method extends
            | "reportInitException"
            | "reportPageException"
            | "browserRestart"
            | "retryUpdate",
        Msg = | Extract<BrowserRestartNotification, { method: Method }>
        | Extract<ReportInitExceptionNotification, { method: Method }>
        | Extract<ReportPageExceptionNotification, { method: Method }>
        | Extract<RetryUpdateNotification, { method: Method }>,
    >(
        ...args: Msg extends { params: Params } ? [Method, Params] : [Method],
    ) => void
    request: <
        Method extends "initialSetup",
        Msg = Extract<InitialSetupRequest, { method: Method }>,
        Return = Msg extends { result: Result } ? Result : void,
    >(
        ...args: Msg extends { params: Params } ? [Method, Params] : [Method],
    ) => Promise<Return>
    subscribe: <
        Method extends "onUpdate",
        Msg = Extract<OnUpdateSubscription, { subscriptionEvent: Method }>,
        Callback = Msg extends { params: Params }
            ? (params: Params) => void
            : (a: never) => void,
    >(
        subscriptionEvent: Method,
        cb: Callback,
    ) => () => void

    Methods

    • This will be sent if the application has loaded, but a client-side error has occurred that cannot be recovered from

      Parameters

      • params: { message: string }

      Returns void