Skip to content

Commit b571cc1

Browse files
ghivertlpil
authored andcommitted
Move form_data to fetch/form_data
1 parent 6ffe451 commit b571cc1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/gleam/fetch.gleam

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import gleam/dynamic.{type Dynamic}
2-
import gleam/form_data.{type FormData}
2+
import gleam/fetch/form_data.{type FormData}
33
import gleam/http/request.{type Request}
44
import gleam/http/response.{type Response}
55
import gleam/javascript/promise.{type Promise}
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
pub type FormData
22

3-
@external(javascript, "../gleam_fetch_ffi.mjs", "newFormData")
3+
@external(javascript, "../../gleam_fetch_ffi.mjs", "newFormData")
44
pub fn new() -> FormData
55

6-
@external(javascript, "../gleam_fetch_ffi.mjs", "appendFormData")
6+
@external(javascript, "../../gleam_fetch_ffi.mjs", "appendFormData")
77
pub fn append(form_data: FormData, key: String, value: String) -> FormData
88

9-
@external(javascript, "../gleam_fetch_ffi.mjs", "appendBitsFormData")
9+
@external(javascript, "../../gleam_fetch_ffi.mjs", "appendBitsFormData")
1010
pub fn append_bits(
1111
form_data: FormData,
1212
key: String,
1313
value: BitArray,
1414
) -> FormData
1515

16-
@external(javascript, "../gleam_fetch_ffi.mjs", "setFormData")
16+
@external(javascript, "../../gleam_fetch_ffi.mjs", "setFormData")
1717
pub fn set(form_data: FormData, key: String, value: String) -> FormData
1818

19-
@external(javascript, "../gleam_fetch_ffi.mjs", "setBitsFormData")
19+
@external(javascript, "../../gleam_fetch_ffi.mjs", "setBitsFormData")
2020
pub fn set_bits(form_data: FormData, key: String, value: BitArray) -> FormData

0 commit comments

Comments
 (0)