forked from Weaverse/pilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.d.ts
More file actions
56 lines (48 loc) · 1.7 KB
/
env.d.ts
File metadata and controls
56 lines (48 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/// <reference types="vite/client" />
/// <reference types="@shopify/remix-oxygen" />
/// <reference types="@shopify/oxygen-workers-types" />
// Enhance TypeScript's built-in typings.
import "@total-typescript/ts-reset";
import type { HydrogenEnv, HydrogenSessionData } from "@shopify/hydrogen";
import type { createAppLoadContext } from "./server";
declare global {
/**
* A global `process` object is only available during build to access NODE_ENV.
*/
const process: { env: { NODE_ENV: "production" | "development" } };
interface Env extends HydrogenEnv {
// declare additional Env parameter use in the fetch handler and Remix loader context here
PUBLIC_GOOGLE_GTM_ID: string;
JUDGEME_PRIVATE_API_TOKEN: string;
CUSTOM_COLLECTION_BANNER_METAFIELD: string;
METAOBJECT_COLORS_TYPE: string;
METAOBJECT_COLOR_NAME_KEY: string;
METAOBJECT_COLOR_VALUE_KEY: string;
KLAVIYO_PRIVATE_API_TOKEN: string;
PUBLIC_SHOPIFY_INBOX_SHOP_ID: string;
WEAVERSE_HOST?: string;
WEAVERSE_API_KEY: string;
}
}
declare module "react-router" {
interface AppLoadContext
extends Awaited<ReturnType<typeof createAppLoadContext>> {
// to change context type, change the return of createAppLoadContext() instead
}
// TODO: remove this once we've migrated our loaders to `Route.LoaderArgs`
interface LoaderFunctionArgs {
context: AppLoadContext;
}
// TODO: remove this once we've migrated our loaders to `Route.ActionArgs`
interface ActionFunctionArgs {
context: AppLoadContext;
}
interface SessionData extends HydrogenSessionData {
// declare local additions to the Remix session data here
}
}
declare global {
interface Window {
dataLayer: any[];
}
}