chromium/third_party/blink/renderer/modules/clipboard/clipboard_item.idl

// 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://w3c.github.io/clipboard-apis/#clipboard-interface

[
  SecureContext,
  Exposed=Window
] interface ClipboardItem {
  [RaisesException] constructor(record<DOMString, Promise<Blob>> items);
  readonly attribute FrozenArray<DOMString> types;

  // The implementation returns an untyped promise
  [
    CallWith=ScriptState,
    PromiseIDLTypeMismatch,
    RaisesException
  ] Promise<Blob> getType(DOMString type);

  [Measure] static boolean supports(DOMString type);
};