Simone Sanfratello

Do TypeScript without TypeScript

What if you could get TypeScript's safety net without migrating your codebase? Learn how to type-check plain JavaScript files using only JSDoc.

Do TypeScript without TypeScript
#1about 2 minutes

The rise of TypeScript and static code checkers

TypeScript has become a highly popular language, evolving from earlier JavaScript static code checkers like JSLint and Flow.

#2about 4 minutes

Understanding the role of explicit types in code

Explicit types help prevent unexpected results from implicit type coercion and define clear contracts for objects and functions.

#3about 4 minutes

Why type checking is not a substitute for tests

Static type checking only addresses code integrity and cannot replace input validation or comprehensive testing for application reliability.

#4about 2 minutes

Exploring the key benefits of adopting TypeScript

TypeScript improves developer experience through better code completion, reduces cognitive load on large projects, and enhances documentation.

#5about 3 minutes

Considering the costs and drawbacks of TypeScript

Adopting TypeScript introduces a required compilation step, configuration complexity, and potential limitations on JavaScript's dynamic capabilities.

#6about 3 minutes

Using JSDoc to get TypeScript benefits without TypeScript

Leverage JSDoc annotations with the TypeScript compiler to enable static type checking directly in JavaScript files, avoiding a full migration.

#7about 12 minutes

Live demo of type checking JavaScript with JSDoc

A practical demonstration shows how to configure a project and use JSDoc annotations to get real-time type checking in plain JavaScript files.

#8about 14 minutes

Audience Q&A on JSDoc, testing, and configuration

The speaker answers audience questions about JSDoc's limitations with generics, strategies for typed testing, and recommended tsconfig.json settings.

Related jobs
Jobs that call for the skills explored in this talk.

test

Milly
Vienna, Austria

Intermediate

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
TL
Thomas Limbüchler
What is TypeScript?
Since Angular 2 at the latest, TypeScript has been known to many. But what exactly can you do with it, and is it worth changing?Anyone who has worked with programming languages ​​such as Java or C# before will have noticed that JavaScript allows a su...
What is TypeScript?
CH
Chris Heilmann
Dev Digest 136 - No JS(on) of mine
News and ArticlesDouglas Crockford is our featured video, so let's talk about evolving JavaScript and all things JSON. Judicious JSON explains all the weird things in it, you can learn why it can be incredibly slow, people wonder what even is a JSON ...
Dev Digest 136 - No JS(on) of mine
EM
Eli McGarvie
8 Great Tech Documentaries For Developers
For decades, developers have been starved of good tech films, we’ve been living on Steve Jobs biopics and Mark Zuckerberg remakes. Last time I checked, no one is interested in Facebook and its FED co-founder. Where are all the cool films that are act...
8 Great Tech Documentaries For Developers

From learning to earning

Jobs that call for the skills explored in this talk.