-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from colelawrence/fix-package-types
Fix plugin.d.ts exported type declarations
- Loading branch information
Showing
1 changed file
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |