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/index.ts:1347
hooks
hooks?:
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/index.ts:1356
id
id:
string
Source
packages/wxt/src/types/index.ts:1367
imports
imports?:
Import
[]
Provide a list of imports to add to auto-imports.
Inherited from
Source
packages/wxt/src/types/index.ts:1351
name
name?:
string
Inherited from
Source
packages/wxt/src/types/index.ts:1343
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/index.ts:1361
type
type:
"local"
|"node_module"
Source
packages/wxt/src/types/index.ts:1366
Generated using typedoc-plugin-markdown and TypeDoc