Skip to content

Commit b2e6a94

Browse files
committed
Fixes for documentation
1 parent 4ffe3c4 commit b2e6a94

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,14 @@ await fetch("https://httpbin.org/post", options)
302302

303303
### `class FormDataEncoder`
304304

305-
##### `constructor(form[, boundary, options]) -> {Encoder}`
305+
##### `constructor(form[, boundary, options]) -> {FormDataEncoder}`
306306

307307
- **{FormDataLike}** form - FormData object to encode. This object must be a spec-compatible FormData implementation.
308-
- **{string}** [boundary] - An optional boundary string that will be used by the encoder. If there's no boundary string is present, Encoder will generate it automatically.
309-
- **{object}** [options] - Encoder options.
308+
- **{string}** [boundary] - An optional boundary string that will be used by the encoder. If there's no boundary string is present, FormDataEncoder will generate it automatically.
309+
- **{object}** [options] - FormDataEncoder options.
310310
- **{boolean}** [options.enableAdditionalHeaders = false] - When enabled, the encoder will emit additional per part headers, such as `Content-Length`. Please note that the web clients do not include these, so when enabled this option might cause an error if `multipart/form-data` does not consider additional headers.
311311

312-
Creates a multipart/form-data encoder.
312+
Creates a `multipart/form-data` encoder.
313313

314314
#### Instance properties
315315

@@ -349,13 +349,13 @@ An alias for `Encoder#values()` method.
349349

350350
An alias for `Encoder#encode()` method.
351351

352-
### `isFileLike(value) -> {boolean}`
352+
### `isFile(value) -> {boolean}`
353353

354354
Check if a value is File-ish object.
355355

356356
- **{unknown}** value - a value to test
357357

358-
### `isFormDataLike(value) -> {boolean}`
358+
### `isFormData(value) -> {boolean}`
359359

360360
Check if a value is FormData-ish object.
361361

0 commit comments

Comments
 (0)