Skip to content

Commit 0046190

Browse files
pazadereyПетр Задерей
andauthored
🤖 Merge PR DefinitelyTyped#74768 fix(formidable): Change options.enabledPlugins type from string to PluginFunction by @pazaderey
Co-authored-by: Петр Задерей <zaderey@trueconf.ru>
1 parent 72bccd2 commit 0046190

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎types/formidable/formidable-tests.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import * as http from "http";
2525
// arrange
2626
const options: Options = {
2727
allowEmptyFiles: true,
28-
enabledPlugins: [],
28+
enabledPlugins: [json, querystring],
2929
encoding: "utf-8",
3030
fileWriteStreamHandler: undefined,
3131
hashAlgorithm: false,

‎types/formidable/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ declare namespace formidable {
193193
*/
194194
filename?: (name: string, ext: string, part: Part, form: Formidable) => string;
195195

196-
enabledPlugins?: string[] | undefined;
196+
enabledPlugins?: formidable.PluginFunction[] | undefined;
197197

198198
filter?: (part: Part) => boolean;
199199
}

0 commit comments

Comments
 (0)