Skip to content

Commit 36f3081

Browse files
authored
Merge pull request #106 from mvaled/add-createObjectURLFromBlob
Add binding of createObjectURL that takes a Blob.
2 parents 37cb069 + d40b148 commit 36f3081

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
* `InputEvent` bindings for `inputType`, `dataTransfer` and `getTargetRanges` (#90)
4141
* `Node.insertAtEnd` binding (which does `parent.insertBefore(child, null)`) (#89)
4242
* CustomEvent Functor to make custom events with strongly typed `detail` fields (#93)
43+
* `Webapi.Url.createObjectURLFromBlob` binding that takes a `Webapi.Blob.t` (#106)
4344

4445
### Fixed
4546
* `ofElement` was incorrectly returning `Dom.htmlElement` type instead of the enclosing element type (#60)

src/Webapi/Webapi__Url.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ type t
4949
@get external toJson: t => string = "toJson"
5050

5151
@val @scope("URL") external createObjectURL: Webapi__File.t => string = "createObjectURL"
52+
@val @scope("URL") external createObjectURLFromBlob: Webapi__Blob.t => string = "createObjectURL"
5253
@val @scope("URL") external revokeObjectURL: string => unit = "revokeObjectURL"

0 commit comments

Comments
 (0)