Files
t3code/apps/web/src/vite-env.d.ts
T

22 lines
436 B
TypeScript

/// <reference types="vite/client" />
import type { DesktopBridge, LocalApi } from "@t3tools/contracts";
interface ImportMetaEnv {
readonly VITE_HTTP_URL: string;
readonly VITE_WS_URL: string;
readonly VITE_HOSTED_APP_URL: string;
readonly APP_VERSION: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
declare global {
interface Window {
nativeApi?: LocalApi;
desktopBridge?: DesktopBridge;
}
}