Skip to content

API > wxt > WxtModule

Interface: WxtModule<TOptions>

Contents

Extended By

Type parameters

TOptions extends WxtModuleOptions

Properties

configKey

configKey?: string

Key for users to pass options into your module from their wxt.config.ts file.

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.

Source

packages/wxt/src/types/index.ts:1356


imports

imports?: Import[]

Provide a list of imports to add to auto-imports.

Source

packages/wxt/src/types/index.ts:1351


name

name?: string

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.

Source

packages/wxt/src/types/index.ts:1361


Generated using typedoc-plugin-markdown and TypeDoc