Repository navigation
Expand file tree
/
Copy pathworker-configuration.d.ts
More file actions
57 lines (57 loc) · 1.78 KB
/
Copy pathworker-configuration.d.ts
File metadata and controls
57 lines (57 loc) · 1.78 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
/* eslint-disable */
// Generated by Wrangler by running `wrangler types --include-runtime=false` (hash: 455a6cc69f6267b547f94ceff68363fb)
interface __BaseEnv_Env {
EMAIL: SendEmail;
BROWSER: BrowserRun;
CF_VERSION_METADATA: WorkerVersionMetadata;
ASSETS: Fetcher;
PORTFOLIO_ID: "owner";
SITE_URL: "https://projects.example.com";
BROWSER_HOSTS: "projects.example.com";
BROWSER_SIGN_IN: "";
OWNER_EMAIL: "owner@example.com";
EMAIL_FROM: "projects@notify.example.com";
TIME_ZONE: "UTC";
ALLOWED_EMAILS: string;
VAPID_PRIVATE_KEY: string;
PORTFOLIOS: DurableObjectNamespace<import("./worker/index").Portfolio>;
CONVERSATIONS: DurableObjectNamespace<import("./worker/index").Conversation>;
}
declare namespace Cloudflare {
interface GlobalProps {
mainModule: typeof import("./worker/index");
durableNamespaces: "Portfolio" | "Conversation";
}
interface Env extends __BaseEnv_Env {}
}
interface Env extends __BaseEnv_Env {}
type StringifyValues<EnvType extends Record<string, unknown>> = {
[Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string;
};
declare namespace NodeJS {
interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "PORTFOLIO_ID" | "SITE_URL" | "BROWSER_HOSTS" | "BROWSER_SIGN_IN" | "OWNER_EMAIL" | "EMAIL_FROM" | "TIME_ZONE" | "ALLOWED_EMAILS" | "VAPID_PRIVATE_KEY">> {}
}
declare module "*.txt" {
const value: string;
export default value;
}
declare module "*.html" {
const value: string;
export default value;
}
declare module "*.sql" {
const value: string;
export default value;
}
declare module "*.bin" {
const value: ArrayBuffer;
export default value;
}
declare module "*.wasm" {
const value: WebAssembly.Module;
export default value;
}
declare module "*.wasm?module" {
const value: WebAssembly.Module;
export default value;
}