File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ import {
1212 PersistentFile ,
1313 plugins ,
1414 VolatileFile ,
15+ PluginFunction ,
16+ octetstream ,
17+ querystring ,
18+ multipart ,
19+ json ,
1520} from "formidable" ;
1621import * as http from "http" ;
1722
@@ -219,3 +224,12 @@ new IncomingForm();
219224
220225// $ExpectType IncomingForm
221226formidable ( ) ;
227+
228+ // $ExpectType PluginFunction
229+ octetstream ;
230+ // $ExpectType PluginFunction
231+ querystring ;
232+ // $ExpectType PluginFunction
233+ multipart ;
234+ // $ExpectType PluginFunction
235+ json ;
Original file line number Diff line number Diff line change @@ -326,6 +326,11 @@ declare const formidable: {
326326 IncomingForm : typeof Formidable ;
327327 // parsers and mapped parsers
328328 parsers : typeof parsers ;
329+ // add named plugin exports
330+ octetstream : formidable . PluginFunction ;
331+ querystring : formidable . PluginFunction ;
332+ multipart : formidable . PluginFunction ;
333+ json : formidable . PluginFunction ;
329334} & formidable . MappedParsers ;
330335
331336export = formidable ;
You can’t perform that action at this time.
0 commit comments