mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-01 04:19:12 +00:00
43 lines
846 B
TypeScript
43 lines
846 B
TypeScript
declare module '*.scss' {
|
|
const content: Record<string, string>;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.css' {
|
|
const content: Record<string, string>;
|
|
export default content;
|
|
}
|
|
|
|
type ListenerType = (event: 'string', args: unknown[]) => void;
|
|
|
|
declare global {
|
|
/**
|
|
* Register the electron properties
|
|
*/
|
|
interface Window {
|
|
ipcRenderer: {
|
|
send: (channel: string, args?: string | object) => void;
|
|
on: (channel: string, listener: ListenerType) => void;
|
|
};
|
|
process: {
|
|
type: string;
|
|
};
|
|
// Experimental browser feature
|
|
documentPictureInPicture: {
|
|
requestWindow: () => Promise<Window>;
|
|
window: Window;
|
|
};
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Allow passing CSS Properties
|
|
*/
|
|
declare module 'react' {
|
|
interface CSSProperties {
|
|
[key: `--${string}`]: string | number;
|
|
}
|
|
}
|
|
|
|
export default {};
|