API > wxt > WxtModuleWithMetadata
Interface: WxtModuleWithMetadata<TOptions>
Contents
Extends
WxtModule
<TOptions
>
Type parameters
▪ TOptions extends WxtModuleOptions
Properties
configKey
configKey?:
string
Key for users to pass options into your module from their wxt.config.ts
file.
Inherited from
Source
packages/wxt/src/types.ts:1515
hooks
hooks?:
NestedHooks
<WxtHooks
>
Alternative to adding hooks in setup function with wxt.hooks
. Hooks are added before the setup
function is called.
Inherited from
Source
packages/wxt/src/types.ts:1524
id
id:
string
Source
packages/wxt/src/types.ts:1535
imports
imports?:
Import
[]
Provide a list of imports to add to auto-imports.
Inherited from
Source
packages/wxt/src/types.ts:1519
name
name?:
string
Inherited from
Source
packages/wxt/src/types.ts:1511
setup
setup?:
WxtModuleSetup
<TOptions
>
A custom function that can be used to setup hooks and call module-specific APIs.
Inherited from
Source
packages/wxt/src/types.ts:1529
type
type:
"local"
|"node_module"
Source
packages/wxt/src/types.ts:1534
Generated using typedoc-plugin-markdown and TypeDoc