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:1529
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:1538
id
id:
string
Source
packages/wxt/src/types.ts:1549
imports
imports?:
Import
[]
Provide a list of imports to add to auto-imports.
Inherited from
Source
packages/wxt/src/types.ts:1533
name
name?:
string
Inherited from
Source
packages/wxt/src/types.ts:1525
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:1543
type
type:
"local"
|"node_module"
Source
packages/wxt/src/types.ts:1548
Generated using typedoc-plugin-markdown and TypeDoc