Skip to content

Commit

Permalink
#1270 - Add missing function and properties, remove non existing prop…
Browse files Browse the repository at this point in the history
…erties and methods
  • Loading branch information
Jooseppi12 committed Oct 18, 2022
1 parent ee48cec commit 1f6578a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/stdlib/WebSharper.JavaScript/Html5.fs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,8 @@ module File =
"size" =? T<int>
"type" =? T<string>
"slice" => T<int>?start * T<int>?``end`` * T<string>?contentType ^-> TSelf
"close" => T<unit> ^-> T<unit>
"arrayBuffer" => T<unit> ^-> EcmaPromise.[TypedArrays.ArrayBuffer]
"text" => T<unit> ^-> EcmaPromise.[T<string>]
]

let File =
Expand All @@ -567,7 +568,7 @@ module File =
"name" =? T<string>
"lastModifiedDate" =? EcmaDate |> Obsolete
"lastModifed" =? T<int>
"size" =? T<int>
"webkitRelativePath" =? T<string>
]

let ProgressEvent =
Expand Down Expand Up @@ -618,6 +619,7 @@ module File =
"readAsArrayBuffer " => Blob ^-> T<unit>
"readAsText" => Blob * !?T<string>?encoding ^-> T<unit>
"readAsDataURL" => Blob ^-> T<unit>
"readAsBinaryString" => Blob * !?T<string>?encoding ^-> T<unit>
]

let TextFileReader =
Expand Down

0 comments on commit 1f6578a

Please sign in to comment.