Static types in JavaScript: what, how and why
summary
Shows concrete examples of how JSDoc annotations stop real bugs, with a live use of Google Closure Compiler warnings and WebStorm's refactor- and completion-driven checks. Demonstrates generating and using TypeScript declaration stubs (DefinitelyTyped) to get accurate completions in plain JavaScript, explains typedef/enum/interface tags, and shows when adding types pays off versus when to leave code unannotated. Practical demos and actual error messages appear rather than theory.
AI-written summary · about
chapters (7)
- 0:00Start
- 10:07Additional Checks Can Be Performed by Webstorm
- 11:56Interfaces
- 15:35Code Completion
- 18:17Quick Fixes
- 21:46Questions
- 22:08Postal Code as a Type
related talks
25mWhy static types in Javascript? — Preethi Kasireddy
31mTypeScript for JavaScripties
36mStarting TypeScript Leaving JavaScript as JS
26mNo Time for Types
39mTypeScript: Why? When? How?
30mTyped JavaScript? For real? The “type annotations” proposal and what it’s all about
24mTypeScript for JavaScripties
11mThe Joy of Typescript
