Skip to content

Commit 41b2f77

Browse files
authored
fix(types): methods should be string array (#1550)
1 parent b9287c4 commit 41b2f77

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const noop = () => {};
100100
* @property {{[key: string]: string}} [mimeTypes]
101101
* @property {string | undefined} [mimeTypeDefault]
102102
* @property {boolean | ((targetPath: string) => boolean)} [writeToDisk]
103-
* @property {string} [methods]
103+
* @property {string[]} [methods]
104104
* @property {Headers<RequestInternal, ResponseInternal>} [headers]
105105
* @property {NonNullable<Configuration["output"]>["publicPath"]} [publicPath]
106106
* @property {Configuration["stats"]} [stats]

types/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export = wdm;
7676
* @property {{[key: string]: string}} [mimeTypes]
7777
* @property {string | undefined} [mimeTypeDefault]
7878
* @property {boolean | ((targetPath: string) => boolean)} [writeToDisk]
79-
* @property {string} [methods]
79+
* @property {string[]} [methods]
8080
* @property {Headers<RequestInternal, ResponseInternal>} [headers]
8181
* @property {NonNullable<Configuration["output"]>["publicPath"]} [publicPath]
8282
* @property {Configuration["stats"]} [stats]
@@ -187,7 +187,7 @@ type Options<
187187
| undefined;
188188
mimeTypeDefault?: string | undefined;
189189
writeToDisk?: boolean | ((targetPath: string) => boolean) | undefined;
190-
methods?: string | undefined;
190+
methods?: string[] | undefined;
191191
headers?: Headers<RequestInternal, ResponseInternal>;
192192
publicPath?: NonNullable<Configuration["output"]>["publicPath"];
193193
stats?: Configuration["stats"];

0 commit comments

Comments
 (0)