blob: 12ac867a56771c951e418b29b477c61f41e6a19b [file] [log] [blame]
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Generated from Web IDL definitions.
import 'dart:js_interop';
@JS('StorageManager')
@staticInterop
class StorageManager {}
extension StorageManagerExtension on StorageManager {
external JSPromise getDirectory();
external JSPromise persisted();
external JSPromise persist();
external JSPromise estimate();
}
@JS()
@staticInterop
@anonymous
class StorageEstimate {
external factory StorageEstimate({
int usage,
int quota,
});
}
extension StorageEstimateExtension on StorageEstimate {
external set usage(int value);
external int get usage;
external set quota(int value);
external int get quota;
}