API > wxt > UnlistedScriptDefinition
Interface: UnlistedScriptDefinition
Contents
Extends
Properties
exclude
exclude?:
string[]
List of target browsers to exclude this entrypoint from. Cannot be used with include. You must choose one of the two options.
Default
ts
undefinedInherited from
Source
include
include?:
string[]
List of target browsers to include this entrypoint in. Defaults to being included in all builds. Cannot be used with exclude. You must choose one of the two options.
Default
ts
undefinedInherited from
Source
Methods
main()
main():
any
Main function executed when the unlisted script is ran.
When running a content script with browser.scripting.executeScript, values returned from this function will be returned in the executeScript result as well. Otherwise returning a value does nothing.
Source
Generated using typedoc-plugin-markdown and TypeDoc