From 9a725d4173aab98bb4eb2f11d1dc54cec952b9de Mon Sep 17 00:00:00 2001 From: Jo Franchetti Date: Mon, 28 Apr 2025 14:05:32 +0100 Subject: [PATCH] update check docs --- runtime/fundamentals/typescript.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/runtime/fundamentals/typescript.md b/runtime/fundamentals/typescript.md index 71aac7017..85f06cf17 100644 --- a/runtime/fundamentals/typescript.md +++ b/runtime/fundamentals/typescript.md @@ -36,12 +36,19 @@ Deno allows you to type-check your code (without executing it) with the [`deno check`](/runtime/reference/cli/check/) subcommand: ```shell +# Check the current directory/module +deno check + +# Check a specific TypeScript file deno check module.ts -# or also type check remote modules and npm packages + +# Include remote modules and npm packages in the check deno check --all module.ts -# code snippets written in JSDoc can also be type checked + +# Check code snippets in JSDoc comments deno check --doc module.ts -# or type check code snippets in markdown files + +# Check code snippets in markdown files deno check --doc-only markdown.md ```