diff --git a/formidable/formidable-tests.ts b/formidable/formidable-tests.ts index f39da3f8c12dbc..a0f70a713c20d9 100644 --- a/formidable/formidable-tests.ts +++ b/formidable/formidable-tests.ts @@ -37,7 +37,7 @@ form.uploadDir = '/my/dir'; form.keepExtensions = false; form.maxFieldsSize = 2 * 1024 * 1024; form.maxFields = 1000; -// form.hash = false; TODO: Waiting on unions +form.hash = false; form.hash = 'sha1'; form.multiples = false; diff --git a/formidable/formidable.d.ts b/formidable/formidable.d.ts index bd35c757dc59c2..ba0ed81228c9ca 100644 --- a/formidable/formidable.d.ts +++ b/formidable/formidable.d.ts @@ -16,7 +16,7 @@ declare module "formidable" { keepExtensions: boolean; maxFieldsSize: number; maxFields: number; - hash: string; + hash: string | boolean; multiples: boolean; type: string; bytesReceived: number;