Skip to content

Commit cea40ee

Browse files
mkusakaRichienb
andauthored
Fix TypeScript types (#9)
Co-authored-by: Richie Bendall <[email protected]>
1 parent dd0a81e commit cea40ee

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

index.d.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
import { Compiler } from "webpack"
22

33
declare namespace NodePolyfillPlugin {
4-
export interface Options {
5-
/**
6-
Aliases to skip adding. Useful if you don't want a module like `console` to be polyfilled.
7-
*/
8-
excludeAliases?: readonly Array<
9-
| "Buffer"
4+
export type Alias =
5+
| "Buffer"
106
| "console"
117
| "process"
128
| "assert"
@@ -37,7 +33,13 @@ declare namespace NodePolyfillPlugin {
3733
| "util"
3834
| "vm"
3935
| "zlib"
40-
>
36+
37+
38+
export interface Options {
39+
/**
40+
Aliases to skip adding. Useful if you don't want a module like `console` to be polyfilled.
41+
*/
42+
excludeAliases?: readonly Alias[]
4143
}
4244
}
4345

0 commit comments

Comments
 (0)