Skip to content

Commit

Permalink
Fix TypeScript types (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: Richie Bendall <[email protected]>
  • Loading branch information
mkusaka and Richienb authored May 5, 2021
1 parent dd0a81e commit cea40ee
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { Compiler } from "webpack"

declare namespace NodePolyfillPlugin {
export interface Options {
/**
Aliases to skip adding. Useful if you don't want a module like `console` to be polyfilled.
*/
excludeAliases?: readonly Array<
| "Buffer"
export type Alias =
| "Buffer"
| "console"
| "process"
| "assert"
Expand Down Expand Up @@ -37,7 +33,13 @@ declare namespace NodePolyfillPlugin {
| "util"
| "vm"
| "zlib"
>


export interface Options {
/**
Aliases to skip adding. Useful if you don't want a module like `console` to be polyfilled.
*/
excludeAliases?: readonly Alias[]
}
}

Expand Down

0 comments on commit cea40ee

Please sign in to comment.