Skip to content

Commit

Permalink
Merge pull request #92 from colelawrence/fix-package-types
Browse files Browse the repository at this point in the history
Fix plugin.d.ts exported type declarations
  • Loading branch information
xtuc authored Aug 6, 2020
2 parents f5e60ed + ca2e7fa commit a0b20c0
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions plugin.d.ts
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit a0b20c0

Please sign in to comment.