Skip to content

Commit 5ca5293

Browse files
committed
fix: Add isFormDataLike export and mark it deprecated. Fixes #4.
1 parent b61dab4 commit 5ca5293

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/util/isFormData.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,12 @@ export const isFormData = (value?: unknown): value is FormDataLike => Boolean(
1616
&& isFunction((value as FormDataLike).entries)
1717
&& isFunction((value as FormDataLike)[Symbol.iterator])
1818
)
19+
20+
/**
21+
* Check if given object is FormData
22+
*
23+
* @param value an object to test
24+
*
25+
* @deprecated use `isFormData` instead.
26+
*/
27+
export const isFormDataLike = isFormData

0 commit comments

Comments
 (0)