env
This page walks you through adding type declarations for your environment variables to your Darkflare app.
Create a
env.d.ts
file in your project root.declare namespace darkflare { type Environment = unknown } export {}
Add it to your
deno.json
.{ "compilerOptions": { "types": [ "./env.d.ts" ] } }
Restart Visual Studio Code to restart Deno’s language server.