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

vite-env.d.ts

34 lines1.1 KB

1/// <reference types="vite-plus/client" />
2​
3import type { DesktopBridge, ThreadId } 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 VITE_HOSTED_APP_CHANNEL: string;
10 readonly VITE_RELEASE_CHANNEL: string;
11 readonly VITE_CLERK_PUBLISHABLE_KEY: string;
12 readonly VITE_CLERK_JWT_TEMPLATE: string;
13 readonly VITE_CLERK_CLI_OAUTH_CLIENT_ID: string;
14 readonly VITE_RELAY_OTLP_TRACES_URL: string;
15 readonly VITE_RELAY_OTLP_TRACES_DATASET: string;
16 readonly VITE_RELAY_OTLP_TRACES_TOKEN: string;
17 readonly T3CODE_DESKTOP_UPDATE_REPOSITORY: string;
18 readonly APP_VERSION: string;
20​
21interface ImportMeta {
22 readonly env: ImportMetaEnv;
24​
25declare global {
26 interface Window {
27 desktopBridge?: DesktopBridge;
28 /** Dev builds only, from DevReplayHost. Agents call these from the browser console. */
29 t3dev?: {
30 readonly replayScenarios: () => ReadonlyArray<string>;
31 readonly replay: (scenario?: string) => Promise<ThreadId>;
32 };
33 }