blob: d7e6ce17d30f7ac29749b8daaeeb31522b91cb73 [file] [log] [blame]
// Copyright (c) 2023, 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;
}