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

    Class MessageResponse

    Native platforms should deliver responses in this format

    Index

    Properties

    context: string

    The global context for this message. For example, something like contentScopeScripts or specialPages

    error: undefined | MessageError

    An optional error

    featureName: string

    The name of the sub-feature, such as duckPlayer or clickToLoad

    id: string

    The id that is used to pair this response with its sender

    result: undefined | Record<string, any>

    The resulting payload - must be a plain object