Skip to main content
On this page

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:
types

Print runtime TypeScript declarations

Did you find what you needed?

Edit this page
Privacy policy