Skip to content

Commit be83da0

Browse files
committed
Add docs for isFileLike and isFormDataLike helpers
1 parent 095910d commit be83da0

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

lib/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ export * from "./FormDataLike"
22
export * from "./FileLike"
33
export * from "./Encoder"
44

5-
export {default as isFile} from "./util/isFile"
6-
export {default as isFormData} from "./util/isFormData"
5+
export {default as isFileLike} from "./util/isFile"
6+
export {default as isFormDataLike} from "./util/isFormData"

readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,15 @@ Creates an async iterator allowing to perform the encoding by portions.
237237
##### `[Symbol.asyncIterator]() -> {AsyncGenerator<Uint8Array, void, undefined>}`
238238

239239
An alias for `Encoder#encode()` method.
240+
241+
### `isFileLike(value) -> {boolean}`
242+
243+
Check if given value is a File-ish object.
244+
245+
- **{unknown}** value - a value to test
246+
247+
### `isFormDataLike(value) -> {boolean}`
248+
249+
Check if is a FormData-ish object.
250+
251+
- **{unknown}** value - a value to test

0 commit comments

Comments
 (0)