global.ts 278 B

1234567891011
  1. import type { IGraphViewerGlobal } from '../interfaces/graph-viewer';
  2. export const isGraphViewerGlobal = (
  3. val: unknown,
  4. ): val is IGraphViewerGlobal => {
  5. return (
  6. typeof val === 'function' &&
  7. 'createViewerForElement' in val &&
  8. 'processElements' in val
  9. );
  10. };