aboutsummaryrefslogtreecommitdiff
path: root/src/app.d.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-18 19:32:34 -0500
committermat <github@matdoes.dev>2022-03-18 19:32:34 -0500
commit379531c5182fef14d2c88e08194734d85c9367a8 (patch)
treede1272385e4c9f435206cd8038931f351a608f54 /src/app.d.ts
parent713f84cbecdb8318ed5e578a3b7d7074422e950a (diff)
downloadskyblock-stats-379531c5182fef14d2c88e08194734d85c9367a8.tar.gz
skyblock-stats-379531c5182fef14d2c88e08194734d85c9367a8.tar.bz2
skyblock-stats-379531c5182fef14d2c88e08194734d85c9367a8.zip
Use `platform` for getting env vars in Cloudflare
Diffstat (limited to 'src/app.d.ts')
-rw-r--r--src/app.d.ts11
1 files changed, 10 insertions, 1 deletions
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<any>): void
+ }
+ }
interface Session {
sid: string | undefined