API / wxt / WxtModuleWithMetadata
Interface: WxtModuleWithMetadata<TOptions>
Source: packages/wxt/src/types.ts:1828
Contents
Extends
WxtModule<TOptions>
Type Parameters
TOptions
TOptions extends WxtModuleOptions
Properties
configKey?
optionalconfigKey?:string
Source: packages/wxt/src/types.ts:1813
Key for users to pass options into your module from their wxt.config.ts file.
Inherited from
hooks?
optionalhooks?:NestedHooks<WxtHooks>
Source: packages/wxt/src/types.ts:1820
Alternative to adding hooks in setup function with wxt.hooks. Hooks are added before the setup function is called.
Inherited from
id
id:
string
Source: packages/wxt/src/types.ts:1832
imports?
optionalimports?:Import[]
Source: packages/wxt/src/types.ts:1815
Provide a list of imports to add to auto-imports.
Inherited from
name?
optionalname?:string
Source: packages/wxt/src/types.ts:1808
Inherited from
setup?
optionalsetup?:WxtModuleSetup<TOptions>
Source: packages/wxt/src/types.ts:1825
A custom function that can be used to setup hooks and call module-specific APIs.
Inherited from
type
type:
"local"|"node_module"
Source: packages/wxt/src/types.ts:1831
Generated using typedoc-plugin-markdown and TypeDoc