From 379531c5182fef14d2c88e08194734d85c9367a8 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 18 Mar 2022 19:32:34 -0500 Subject: Use `platform` for getting env vars in Cloudflare --- src/app.d.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/app.d.ts') diff --git a/src/app.d.ts b/src/app.d.ts index ddaae39..b41fa6f 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -7,7 +7,16 @@ declare namespace App { sid: string | undefined } - // interface Platform {} + + interface Platform { + env: { + DISCORD_CLIENT_ID: string | undefined + SKYBLOCK_STATS_API_KEY: string | undefined + } + context: { + waitUntil(promise: Promise): void + } + } interface Session { sid: string | undefined -- cgit