Interface FileSystemWritableFileStream
interface FileSystemWritableFileStream {
locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<any>;
seek(position: number): Promise<void>;
truncate(size: number): Promise<void>;
write(data: FileSystemWriteChunkType): Promise<void>;
}
locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<any>;
seek(position: number): Promise<void>;
truncate(size: number): Promise<void>;
write(data: FileSystemWriteChunkType): Promise<void>;
}
Hierarchy
- WritableStream
- FileSystemWritableFileStream (view full)
Methods
abort
close
getWriter
- get
Writer (): WritableStreamDefaultWriter<any> Returns WritableStreamDefaultWriter<any>
seek
truncate
write
- write(data): Promise<void>
Parameters
- data: FileSystemWriteChunkType
Returns Promise<void>
Available only in secure contexts.
MDN Reference