API / wxt / WxtModuleWithMetadata
Interface: WxtModuleWithMetadata<TOptions>
Source: packages/wxt/src/types.ts:1860
Contents
Extends
WxtModule<TOptions>
Type Parameters
TOptions
TOptions extends WxtModuleOptions
Properties
configKey?
optionalconfigKey?:string
Source: packages/wxt/src/types.ts:1845
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:1852
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:1864
imports?
optionalimports?:Import[]
Source: packages/wxt/src/types.ts:1847
Provide a list of imports to add to auto-imports.
Inherited from
name?
optionalname?:string
Source: packages/wxt/src/types.ts:1840
Inherited from
setup?
optionalsetup?:WxtModuleSetup<TOptions>
Source: packages/wxt/src/types.ts:1857
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:1863
Generated using typedoc-plugin-markdown and TypeDoc