示例工程 36-project-desktop-hub

36-project-desktop-hub/app/.tsc/shared/hub-state.d.ts

typescript · 0.4 KB

export type HubState = {
    visible: boolean;
    resident: boolean;
    quitting: boolean;
};
export type HubEvent = "close" | "tray-toggle" | "shortcut-toggle" | "show" | "hide" | "activate" | "quit";
export declare function initialHubState(): HubState;
export declare function reduceHub(state: HubState, event: HubEvent): HubState;
//# sourceMappingURL=hub-state.d.ts.map