Files
react-native-devtools-frontend/front_end/core/common/JavaScriptMetaData.ts
T
Victor Porof 3baf1cb54a Expose the DOM pinned properties dataset as JavaScriptMetadata
This allows the data to be built and consumed in the frontend.

Bug: 1325812
Change-Id: I89c336983097af0bd02609bc72b6562f1723b007
Signed-off-by: Victor Porof <victorporof@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3702683
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2022-06-17 10:51:58 +00:00

32 lines
836 B
TypeScript

// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
export interface DOMPinnedWebIDLProp {
global?: boolean;
specs?: number;
rules?: Array<DOMPinnedWebIDLRule>;
}
export interface DOMPinnedWebIDLType {
inheritance?: string;
includes?: Array<string>;
props?: {
[PropName: string]: DOMPinnedWebIDLProp,
};
rules?: Array<DOMPinnedWebIDLRule>;
}
export interface DOMPinnedWebIDLRule {
when: string;
is: string;
}
export interface JavaScriptMetaData {
signaturesForNativeFunction(name: string): string[][]|null;
signaturesForInstanceMethod(name: string, receiverClassName: string): string[][]|null;
signaturesForStaticMethod(name: string, receiverConstructorName: string): string[][]|null;
}