Skip to content

FileSystemWritableFileStream

Values

abort

let abort: (
WebAPI.FileAPI.fileSystemWritableFileStream,
~reason: JSON.t=?,
) => Promise.t<unit>

Parameters

WebAPI.FileAPI.fileSystemWritableFileStream option< JSON.t >

Return type

Promise.t< unit >

asWritableStream

let asWritableStream: WebAPI.FileAPI.fileSystemWritableFileStream => WebAPI.FileAPI.writableStream<
'w,
>

close

let close: WebAPI.FileAPI.fileSystemWritableFileStream => Promise.t<
unit,
>

Parameters

WebAPI.FileAPI.fileSystemWritableFileStream

Return type

Promise.t< unit >

getWriter

let getWriter: WebAPI.FileAPI.fileSystemWritableFileStream => WebAPI.FileAPI.writableStreamDefaultWriter<
'w,
>

seek

let seek: (
WebAPI.FileAPI.fileSystemWritableFileStream,
int,
) => Promise.t<unit>

Parameters

WebAPI.FileAPI.fileSystemWritableFileStream int

Return type

Promise.t< unit >

truncate

let truncate: (
WebAPI.FileAPI.fileSystemWritableFileStream,
int,
) => Promise.t<unit>

Parameters

WebAPI.FileAPI.fileSystemWritableFileStream int

Return type

Promise.t< unit >

write

let write: (
WebAPI.FileAPI.fileSystemWritableFileStream,
DataView.t,
) => Promise.t<unit>

Parameters

WebAPI.FileAPI.fileSystemWritableFileStream DataView.t

Return type

Promise.t< unit >

write2

let write2: (
WebAPI.FileAPI.fileSystemWritableFileStream,
ArrayBuffer.t,
) => Promise.t<unit>

Parameters

WebAPI.FileAPI.fileSystemWritableFileStream ArrayBuffer.t

Return type

Promise.t< unit >

write3

let write3: (
WebAPI.FileAPI.fileSystemWritableFileStream,
WebAPI.FileAPI.blob,
) => Promise.t<unit>

Parameters

WebAPI.FileAPI.fileSystemWritableFileStream WebAPI.FileAPI.blob

Return type

Promise.t< unit >

write4

let write4: (
WebAPI.FileAPI.fileSystemWritableFileStream,
string,
) => Promise.t<unit>

Parameters

WebAPI.FileAPI.fileSystemWritableFileStream string

Return type

Promise.t< unit >

write5

let write5: (
WebAPI.FileAPI.fileSystemWritableFileStream,
WebAPI.FileAPI.writeParams,
) => Promise.t<unit>