graph-viewer.ts 274 B

1234567891011
  1. export interface IGraphViewer {
  2. createViewerForElement: (Element) => void,
  3. }
  4. export const isGraphViewer = (val: any): val is IGraphViewer => {
  5. if (typeof val === 'function' && typeof val.createViewerForElement === 'function') {
  6. return true;
  7. }
  8. return false;
  9. };