blob: 08d6944c1afe717266a8b37dadbd997fe1cbbde8 [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';
import 'hr_time.dart';
typedef IdleRequestCallback = JSFunction;
@JS()
@staticInterop
@anonymous
class IdleRequestOptions {
external factory IdleRequestOptions({int timeout});
}
extension IdleRequestOptionsExtension on IdleRequestOptions {
external set timeout(int value);
external int get timeout;
}
@JS('IdleDeadline')
@staticInterop
class IdleDeadline {}
extension IdleDeadlineExtension on IdleDeadline {
external DOMHighResTimeStamp timeRemaining();
external bool get didTimeout;
}