On this page

deno types

Prints runtime TypeScript declarations.

Command Jump to heading

deno types [OPTIONS] - Generate types into stdout.

Synopsis Jump to heading

deno types [-q|--quiet] [OPTIONS]

deno types -h|--help

Description Jump to heading

Generates types suitable for use with Deno runtime. The types are printed to stdout and can be redirected to a file or used in a pipeline.

deno types > lib.deno.d.ts

Arguments Jump to heading

There are no arguments for this command.

Options Jump to heading

  • -q, --quiet

    Suppress diagnostic output

  • -h, --help

    Print help (see a summary with '-h')

Examples Jump to heading

  • Save Deno type definitions into a d.ts file
deno types > lib.deno.d.ts