Skip to content

Commit

Permalink
Merge pull request #2177 from Hyperkid123/drawer-panel-api
Browse files Browse the repository at this point in the history
fix(types): add drawer actions to ChromeAPI
  • Loading branch information
Hyperkid123 authored Feb 28, 2025
2 parents 4cdb0bf + 0dec7c6 commit bdae9ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ export type ChromeWsEventListener<T> = (event: ChromeWsPayload<T>) => void;
export type UnSubscribeFromChromeWsEvent = () => void;
export type AddChromeWsEventListener = <T>(type: ChromeWsEventTypes, listener: ChromeWsEventListener<T>) => UnSubscribeFromChromeWsEvent;

export type DrawerPanelActions = {
setDrawerPanelContent: (data: { scope: string; module: string } & Record<string, unknown>) => void;
toggleDrawerPanel: () => void;
toggleDrawerContent: (data: { scope: string; module: string } & Record<string, unknown>) => void;
};

export interface ChromeAPI {
/** @deprecated will be removed from useChrome hook */
$internal: any;
Expand Down

0 comments on commit bdae9ae

Please sign in to comment.