From 4bdc1d9fc1312a2e5e61db8aff77955376da8945 Mon Sep 17 00:00:00 2001 From: Atul Varma Date: Sat, 5 Jun 2021 10:36:04 -0400 Subject: [PATCH] Add documentation on type checking. (#146) This adds documentation to the README about how to perform type-checking, and also links to TypeScript's documentation on editor integrations. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index bab3446..31ffd59 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,19 @@ To run tests interactively, run: npm run test:watch ``` +## Type checking + +To make sure that everything type-checks okay, run: + +``` +npm run typecheck +``` + +Note that you may want to install a [TypeScript plugin for your favorite editor][ts-editor]. Aside from telling you what type errors you have in real-time, editor integration also provides code autocompletion and other affordances that can greatly improve your productivity. For more details, see Atul's [Fun with TypeScript][] series of videos. + +[ts-editor]: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Editor-Support +[Fun with TypeScript]: https://www.youtube.com/playlist?list=PL79r88piDzwZVwCI_26T3ZjC3xKvQLgjh + ## Code style All code styling is managed by [Prettier][].