Skip to content

API > wxt/utils/inject-script > InjectScriptResult

Interface: InjectScriptResult

Contents

Properties

result

result: unknown

The return value of the script.

Source

packages/wxt/src/utils/inject-script.ts:107


script

script: HTMLScriptElement

The created script element. It can be used to e.g. send messages to the script in the form of custom events. The script can add an event listener for them via document.currentScript.

Source

packages/wxt/src/utils/inject-script.ts:103


Generated using typedoc-plugin-markdown and TypeDoc