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.

Software Engineer

tree-IT GmbH
Bad Neustadt an der Saale, Germany

Intermediate
Senior

Featured Partners

Related Articles

View all articles
DC
Daniel Cranney
Exploring TypeScript: Benefits for Large-Scale JavaScript Projects
JavaScript is the backbone of web development, powering everything from small websites to large-scale enterprise applications. However, as projects grow in complexity, maintaining JavaScript code can become increasingly difficult. This is where TypeS...
Exploring TypeScript: Benefits for Large-Scale JavaScript Projects
BR
Benjamin Ruschin
The HTML Elements That You’re Probably Over-Engineering
As frameworks have become more and more commonplace in the world of web development, so too has the over-engineering of features made possible by our humble old friend, HTML. The mental models that come with using state management in React, Vue and o...
The HTML Elements That You’re Probably Over-Engineering
DC
Daniel Cranney
Dev Digest 195: End of Likes, JavaScript’s a Zoo, and Messing with Bots!
Inside last week’s Dev Digest 195 . 👎 No more external likes 🤗 Needy programs 📉 The worst selling Microsoft product 🟨 JavaScript engines zoo 🍞 No more toasts! 🤖 Messing with bots 👔 Beware of fake job interviews 🗞️ Join over 150,000 developers alread...
Dev Digest 195: End of Likes, JavaScript’s a Zoo, and Messing with Bots!

From learning to earning

Jobs that call for the skills explored in this talk.

TypeScript AWS Developer

TypeScript AWS Developer

TechShack
Charing Cross, United Kingdom

£156-182K
Senior
Terraform
TypeScript
Microservices
Amazon Web Services (AWS)
Typescript Developer

Typescript Developer

Dabster
Charing Cross, United Kingdom

Java
Docker
JavaScript
TypeScript
Microservices
+1