@finos/perspective-viewer
Version:
The `<perspective-viewer>` Custom Element, frontend for Perspective.js
35 lines (34 loc) • 1.41 kB
TypeScript
/******************************************************************************
*
* Copyright (c) 2018, the Perspective Authors.
*
* This file is part of the Perspective library, distributed under the terms
* of the Apache License 2.0. The full license can be found in the LICENSE
* file.
*
*/
/// <reference types="react" />
import type { HTMLPerspectiveViewerElement } from "./viewer";
import type { HTMLPerspectiveViewerPluginElement } from "./plugin";
declare type ReactPerspectiveViewerAttributes<T> = React.HTMLAttributes<T>;
declare type JsxPerspectiveViewerElement = {
class?: string;
} & React.DetailedHTMLProps<ReactPerspectiveViewerAttributes<HTMLPerspectiveViewerElement>, HTMLPerspectiveViewerElement>;
declare global {
namespace JSX {
interface IntrinsicElements {
"perspective-viewer": JsxPerspectiveViewerElement;
}
}
}
declare global {
interface Document {
createElement(tagName: "perspective-viewer", options?: ElementCreationOptions): HTMLPerspectiveViewerElement;
createElement(tagName: "perspective-viewer-plugin", options?: ElementCreationOptions): HTMLPerspectiveViewerPluginElement;
}
interface CustomElementRegistry {
get(tagName: "perspective-viewer"): typeof HTMLPerspectiveViewerElement;
get(tagName: "perspective-viewer-plugin"): typeof HTMLPerspectiveViewerPluginElement;
}
}
export {};