We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
close()
1 parent 4d955b4 commit 8b23c8aCopy full SHA for 8b23c8a
packages/jsapi-components/src/useWidgetClose.ts
@@ -1,5 +1,4 @@
1
import { useEffect } from 'react';
2
-import { type WidgetTypes } from '@deephaven/jsapi-bootstrap';
3
import { isClosed } from '@deephaven/jsapi-utils';
4
5
/**
@@ -8,7 +7,7 @@ import { isClosed } from '@deephaven/jsapi-utils';
8
7
* @param widget The widget to close
9
*/
10
export default function useWidgetClose(
11
- widget: WidgetTypes | null | undefined
+ widget: { close: () => void } | null | undefined
12
): void {
13
useEffect(
14
() => () => {
0 commit comments