Files
5chan/src/globals.d.ts
T

22 lines
612 B
TypeScript
Raw Normal View History

2024-02-27 17:58:08 +01:00
declare global {
interface Window {
isElectron: boolean;
}
}
import type { ProviderId } from './lib/media-hosting/types';
2025-05-22 17:42:04 +02:00
declare global {
interface Window {
electronApi?: {
isElectron: boolean;
copyToClipboard: (text: string) => Promise<{ success: boolean; error?: string }>;
getPlatform: () => Promise<{ platform: NodeJS.Platform; arch: string; version: string }>;
automateUploadMedia: (options: { provider: ProviderId; filePath: string }) => Promise<{ url: string; provider: ProviderId }>;
getPathForFile?: (file: File) => string | null;
2025-05-22 17:42:04 +02:00
};
}
}
2024-02-27 17:58:08 +01:00
export {};