diff --git a/plugin.d.ts b/plugin.d.ts index 5b497b1..a002e32 100644 --- a/plugin.d.ts +++ b/plugin.d.ts @@ -1,20 +1,26 @@ import { Plugin } from 'webpack'; -declare module '@wasm-tool/wasm-pack-plugin' { - export interface WasmPackPluginOptions { - crateDirectory: string; - args?: string; - extraArgs?: string; - forceWatch?: boolean; - forceMode?: 'development' | 'production'; - outDir?: string; - outName?: string; - watchDirectories?: string[]; - /** Controls plugin output verbosity. Defaults to 'info'. */ - pluginLogLevel?: 'info' | 'error'; - } +export interface WasmPackPluginOptions { + crateDirectory: string; + args?: string; + extraArgs?: string; + forceWatch?: boolean; + forceMode?: 'development' | 'production'; + outDir?: string; + outName?: string; + watchDirectories?: string[]; + /** Controls plugin output verbosity. Defaults to 'info'. */ + pluginLogLevel?: 'info' | 'error'; +} + +export default class WasmPackPlugin extends Plugin { + constructor(options: WasmPackPluginOptions) +} + +export = WasmPackPlugin - export default class WasmPackPlugin extends Plugin { - constructor(options: WasmPackPluginOptions) - } +declare module '@wasm-tool/wasm-pack-plugin' { + export { WasmPackPluginOptions, WasmPackPlugin } + export default WasmPackPlugin + export = WasmPackPlugin }