-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEMPORARY: remove PerspectiveViewer interface
- Loading branch information
1 parent
c2694b7
commit 9f9fe40
Showing
2 changed files
with
4 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,15 @@ | ||
import { PanelProps } from '@grafana/data'; | ||
import { PerspectiveViewer as PerspectiveViewerOriginal, PerspectiveViewerOptions } from '@finos/perspective-viewer'; | ||
import { Ref } from 'react'; | ||
import { PerspectiveViewerOptions } from '@finos/perspective-viewer'; | ||
|
||
export interface PerspectiveOptions extends PerspectiveViewerOptions {} | ||
|
||
// @todo https://github.com/Microsoft/TypeScript/issues/16936 | ||
export interface PerspectiveViewer extends PerspectiveViewerOriginal { | ||
ref: Ref<PerspectiveViewerOriginal | null>; | ||
} | ||
|
||
export interface Props extends PanelProps<PerspectiveOptions> {} | ||
|
||
export const defaults: PerspectiveOptions = {}; | ||
|
||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
'perspective-viewer': PerspectiveViewer; | ||
'perspective-viewer': any; | ||
} | ||
} | ||
} |