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:1542
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:1551
id
id:
string
Source
packages/wxt/src/types.ts:1562
imports
imports?:
Import
[]
Provide a list of imports to add to auto-imports.
Inherited from
Source
packages/wxt/src/types.ts:1546
name
name?:
string
Inherited from
Source
packages/wxt/src/types.ts:1538
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:1556
type
type:
"local"
|"node_module"
Source
packages/wxt/src/types.ts:1561
Generated using typedoc-plugin-markdown and TypeDoc