Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 665 Bytes

File metadata and controls

30 lines (23 loc) · 665 Bytes
title oldUrl command openGraphLayout openGraphTitle description
deno check
/runtime/manual/tools/check/
check
/open_graph/cli-commands.jsx
deno check
Download and type-check code without execution

Examples

Type-check a TypeScript file without execution:

const x: string = 1 + 1n;
deno check example.ts

Type-checking JavaScript files

If you have a JavaScript-only project and want to type-check it with Deno, you can use the --check-js flag instead of adding // @ts-check to every file or setting compilerOptions.checkJs in your deno.json:

deno check --check-js main.js