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.
using
1 parent 344a147 commit 757479fCopy full SHA for 757479f
browser/dom/statusBar.ts
@@ -1,6 +1,6 @@
1
import { statusBar } from "./dom.ts";
2
3
-export interface UseStatusBarResult {
+export interface UseStatusBarResult extends Disposable {
4
/** Display information in the acquired status bar section
5
*
6
* @param items - Array of items to display (text, icons, or groups)
@@ -31,6 +31,7 @@ export const useStatusBar = (): UseStatusBarResult => {
31
if (child) status.append(child);
32
},
33
dispose: () => status.remove(),
34
+ [Symbol.dispose]: () => status.remove(),
35
};
36
37
0 commit comments