fix(modules): Re-export WxtModule type from wxt/modules to prevent TS2742 (#721)
This commit is contained in:
@@ -14,6 +14,9 @@ import * as vite from 'vite';
|
||||
import glob from 'fast-glob';
|
||||
import { resolve } from 'node:path';
|
||||
|
||||
// Re-export to prevent TS2742 type errors
|
||||
export { WxtModule };
|
||||
|
||||
export function defineWxtModule<TOptions extends WxtModuleOptions>(
|
||||
module: WxtModule<TOptions> | WxtModuleSetup<TOptions>,
|
||||
): WxtModule<TOptions> {
|
||||
|
||||
Reference in New Issue
Block a user