mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
408 B
TypeScript
19 lines
408 B
TypeScript
3 years ago
|
import { Channels } from 'main/preload';
|
||
|
|
||
|
declare global {
|
||
|
interface Window {
|
||
|
electron: {
|
||
|
ipcRenderer: {
|
||
|
sendMessage(channel: Channels, args: unknown[]): void;
|
||
|
on(
|
||
|
channel: string,
|
||
|
func: (...args: unknown[]) => void
|
||
|
): (() => void) | undefined;
|
||
|
once(channel: string, func: (...args: unknown[]) => void): void;
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export {};
|