Skip navigation
There's no divide between TypeScript and JavaScript.
0:00 / 2:09

There's no divide between TypeScript and JavaScript.

Matt Pocock

@mattpocockuk311K followers

Visit on X
556 likesDownloadOriginal post

52,002 views

There's no divide between TypeScript and JavaScript. TypeScript loves JavaScript. Want to use JSDoc in JavaScript? TypeScript will help you out. Want to write ZERO types? TypeScript will still try its best to help. Here's me, Anders Hejlsberg and Ryan Cavanaugh 👉 searyanc.dev on bsky to explain.

9 Comments

Comments from the original post on X (Twitter)

  • Matt Pocock's profile picture

    @mattpocockuk

    @SeaRyanC These clips were taken from the upcoming TS doc - check out the trailer here!

    44 likes

  • Miraan Tabrez's profile picture

    @miraan_tabrez

    @ahejlsberg @SeaRyanC “Bad programmers worry about the code. Good programmers worry about data structures and their relationships.” — Linus Torvalds Anti-TypeScript folk probably haven't experienced the magic of "type-driven development" — defining the types, then letting the code write itself.

    12 likes

  • Giuseppe La Torre's profile picture

    @giuseppelt

    @ahejlsberg @SeaRyanC

    6 likes

  • Sebastian Schulz's profile picture

    @sschulz279

    @ahejlsberg @SeaRyanC Yeah that is actually a good point. "If you use vscode with javascript, you actually use typescript". 👌

    4 likes

  • 𝗘𝗻𝗱𝘂𝗿𝗮𝗻𝗰𝗲, 𝘁𝗵𝗲 𝗠𝗮𝗿𝘁𝗶𝗮𝗻 👨🏾‍💻's profile picture

    @hendurhance

    @ahejlsberg @SeaRyanC I thought JSDoc was the bare minimum, but I do not feel comfortable writing a code without an annotation block above it. JS, PHP, and even Python sometimes. Yeah, but I guess adding JSDoc to typescript seems unnecessary.

    3 likes

  • Simon Vrachliotis's profile picture

    @simonswiss

    @ahejlsberg @SeaRyanC Your on-camera body language and speech delivery is immaculate, Matt. I know you did not post this video to hear this... but here you go!

    3 likes

  • bhoomige's profile picture

    @buybotxyz

    @ahejlsberg @SeaRyanC Cool

    1 like

  • Oleg | webstudio.is's profile picture

    @oleg008

    @ahejlsberg @SeaRyanC Using jsdoc for CLIs in particular should be seriously considered. This way you get rid of compile step immediately.

    1 like

  • Web Reaper | Website Engineer's profile picture

    @BowTiedWebReapr

    @ahejlsberg @SeaRyanC Awesome clip Matt Everyone is likely already using it

    1 like