Skip to main content
On this page

deno types

deno types prints the TypeScript type declarations for all Deno-specific APIs. This is useful for editors and tools that need Deno's type information.

Basic usage Jump to heading

Print type declarations to stdout:

>_
deno types

Save to a file for use with an editor or type checker:

>_
deno types > deno.d.ts

When to use this Jump to heading

Most editors with the Deno extension handle types automatically. You may need deno types if you are:

  • Using an editor without Deno LSP support
  • Generating type declarations for a build pipeline
  • Inspecting which APIs are available at your current Deno version
Command line usage:
deno types [OPTIONS]

Print runtime TypeScript declarations.

deno types > lib.deno.d.ts

The declaration file could be saved and used for typing information.

Last updated on

Did you find what you needed?

Privacy policy