Converting JS to TypeScript
source link: https://syntax.fm/show/573/converting-js-to-typescript
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Feb 8th, 2023
Converting JS to TypeScript
👇 Download Show✏️ Edit Show Notes
In this episode of Syntax, Wes and Scott talk about their respective processes for converting JavaScript to TypeScript in their projects, why you might want to, and tooling for moving to TypeScript.
Sentry - Sponsor
If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.
Show Notes
- 00:10 Welcome
- 00:36 Sponsor: Sentry
- 02:23 Electrical updates
- 08:16 Moving to TypeScript
- 09:34 What are you doing with GraphQL?
- GraphQL Codegen
- 11:35 Why move to TypeScript?
- 12:00 Refactoring is easier
- 14:58 Better DX
- 18:42 Adding a tsconfig.json file
- 22:43 Figure out your tooling
- 23:50 Type Checker
- 25:13 MongoDB to TypScript Generator
- 26:44 Eslint-Typescript
- 28:03 Deprank
- Deprank
- 29:18 Refactor and rename to .ts
- 32:40 Typing your code
- 43:04 Utilities and unions
- 46:11 Where do you put your types?
- 49:29 Typing Dependencies
- Definitely Typed
- Raycast Search npm
- 54:26 Global types
- 01:08 Now what?
- 03:58 SIIIIICK ××× PIIIICKS ×××
××× SIIIIICK ××× PIIIICKS ×××
Shameless Plugs
Tweet us your tasty treats
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK