Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

vite-env.d.ts

21 lines436 Bytes

1/// <reference types="vite/client" />
2​
3import type { DesktopBridge, LocalApi } from "@t3tools/contracts";
4​
5interface ImportMetaEnv {
6 readonly VITE_HTTP_URL: string;
7 readonly VITE_WS_URL: string;
8 readonly VITE_HOSTED_APP_URL: string;
9 readonly APP_VERSION: string;
11​
12interface ImportMeta {
13 readonly env: ImportMetaEnv;
15​
16declare global {
17 interface Window {
18 nativeApi?: LocalApi;
19 desktopBridge?: DesktopBridge;
20 }