示例工程 22-theming-and-native-appearance
22-theming-and-native-appearance/app/.tsc/shared/ipc.d.ts
export declare const CH: {
readonly themeGet: "theme:get";
readonly themeSet: "theme:set";
readonly themeChanged: "theme:changed";
};
export type ThemeSource = "system" | "light" | "dark";
export type ThemeState = {
source: ThemeSource;
shouldUseDarkColors: boolean;
platform: string;
};
export declare function isThemeSource(value: unknown): value is ThemeSource;
export declare function assertThemeSet(value: unknown): asserts value is {
source: ThemeSource;
};
//# sourceMappingURL=ipc.d.ts.map