Skip to content

Commit ec55579

Browse files
committed
Add documentation for createBoundary helper.
1 parent 03722ec commit ec55579

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ export * from "./Encoder"
44

55
export {default as isFileLike} from "./util/isFile"
66
export {default as isFormDataLike} from "./util/isFormData"
7-
export {default as createBoundary} from "./util/createBoundary"

lib/util/createBoundary.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const alphabet
33

44
/**
55
* Generates a boundary string for FormData encoder.
6+
*
7+
* @param size The size of the resulting string
68
*/
79
function createBoundary(size: number): string {
810
let res = ""

0 commit comments

Comments
 (0)