blob: e09e63d9cfa39ac561a00a94121276cba1817fe5 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://wicg.github.io/native-file-system/#filesystemwritablefilestream
[
Exposed=(Window,Worker),
SecureContext,
ImplementedAs=NativeFileSystemWritableFileStream,
RuntimeEnabled=NativeFileSystem
] interface FileSystemWritableFileStream : WritableStream {
[CallWith=ScriptState, RaisesException] Promise<void> write((BufferSource or Blob or USVString or WriteParams) data);
[CallWith=ScriptState, RaisesException] Promise<void> truncate(unsigned long long size);
[CallWith=ScriptState, RaisesException] Promise<void> close();
[CallWith=ScriptState, RaisesException] Promise<void> seek(unsigned long long offset);
};