Skip to content

Commit 8754139

Browse files
committed
chore: fix typings
1 parent ab7dff4 commit 8754139

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/fetch-mock/src/Matchers.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,11 @@ const getExpressParamsMatcher: MatcherGenerator = ({
186186
};
187187
};
188188

189-
const formDataToObject = (formData) => {
189+
const formDataToObject = (formData: FormData) => {
190190
const fields = [...formData];
191-
const result = {};
191+
const result: {
192+
[key: string]: FormDataEntryValue[];
193+
} = {};
192194
fields.forEach(([key, value]) => {
193195
result[key] = result[key] || [];
194196
result[key].push(value);

0 commit comments

Comments
 (0)