Repository navigation
Expand file tree
/
Copy pathenv.d.ts
More file actions
69 lines (62 loc) · 1.98 KB
/
Copy pathenv.d.ts
File metadata and controls
69 lines (62 loc) · 1.98 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
57
58
59
60
61
62
63
64
65
66
67
68
69
/// <reference types="vite/client" />
/// <reference types="@shopify/oxygen-workers-types" />
// Enhance TypeScript's built-in typings.
import "@total-typescript/ts-reset";
import type {
WeaverseClient,
WeaverseEnv,
} from "@weaverse/hydrogen/react-router";
import type { StoreLocalization } from "./app/types/locale";
import type { createAppLoadContext } from "./server";
declare global {
interface Env extends WeaverseEnv {
SESSION_SECRET: string;
PUBLIC_STORE_DOMAIN: string;
PUBLIC_STOREFRONT_API_TOKEN?: string;
PRIVATE_STOREFRONT_API_TOKEN?: string;
PUBLIC_STOREFRONT_ID?: string;
PUBLIC_CHECKOUT_DOMAIN?: string;
SHOP_ID?: string;
PUBLIC_CUSTOMER_ACCOUNT_API_CLIENT_ID?: string;
// 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;
LOYALTYLION_SITE_ID: string;
LOYALTYLION_API_KEY: string;
WISHLIST_API_KEY?: string;
PUBLIC_SHOPIFY_INBOX_SHOP_ID: string;
WEAVERSE_HOST?: string;
}
}
declare module "react-router" {
interface SessionData {
themivoGuest?: string;
}
interface AppLoadContext extends Awaited<
ReturnType<typeof createAppLoadContext>
> {
// to change context type, change the return of createAppLoadContext() instead
weaverse: WeaverseClient;
}
// 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 RouterContextProvider extends Awaited<
ReturnType<typeof createAppLoadContext>
> {}
}
declare global {
interface Window {
dataLayer: any[];
}
}