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
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
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
© 2018–2025 the Deno authors
Licensed under the MIT License.
https://docs.deno.com/runtime/reference/cli/types