Type Checking

We recommend the official Deno VSCode extension for type checking your frontend code. Optionally you can use any LSP compliant editors. See Editors and IDEs section of Deno Manual for more details.

You can also use deno cache command for type checking your frontend code with the below configuration.

TypeScript Configuration

To use the type checker smoothly with your frontend code, you need tsconfig.ts set up like the below.

  "compilerOptions": {
    "target": "esnext",
    "lib": ["esnext", "dom", "dom.iterable", "dom.asynciterable"]

See the Using the "lib" property section of Deno Manula for more details.

Edit this page in GitHub