Skip to main content
Latest
File

env

This page walks you through adding type declarations for your environment variables to your Darkflare app.

  1. Create a env.d.ts file in your project root.

    declare namespace darkflare {
      type Environment = unknown
    }
    
    export {}
  2. Add it to your deno.json.

    {
      "compilerOptions": {
        "types": [
          "./env.d.ts"
        ]
      }
    }
  3. Restart Visual Studio Code to restart Deno’s language server.