// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://fs.spec.whatwg.org/#enumdef-writecommandtype
enum WriteCommandType {
"truncate",
"seek",
"write",
};
// https://fs.spec.whatwg.org/#dictdef-writeparams
dictionary WriteParams {
required WriteCommandType type;
unsigned long long? size;
unsigned long long? position;
(BufferSource or Blob or USVString)? data;
};