How does ts-reset work?

Поделиться
HTML-код
  • Опубликовано: 19 мар 2023
  • ‪@mattpocockuk‬'s new library ts-reset improves TypeScript's built-in types ... but how does it work? In this video, we'll take a look at the code and see what's going on.
    github.com/total-typescript/t...
    Blog: shaky.sh
  • НаукаНаука

Комментарии • 12

  • @wlockuz4467
    @wlockuz4467 Год назад +5

    Not going to lie, ts-reset is first library that I understood the inner workings of because Matt is so good at explaining everything about TypeScript.

  • @xtremehackerzpro9511
    @xtremehackerzpro9511 6 месяцев назад +1

    You and Matt are the best TS teachers on the internet :D

  • @hyperprotagonist
    @hyperprotagonist Год назад +5

    A lot of content on RUclips consistently touches on the basics of typescript, so if you know how to annotate your code, there’s not a lot more to go on out there. Your content is a breath of fresh air. It’s not “if I type it as string, you’re now a typescript expert”. There’s far more realism and real-world issues in your content and I echo that of Matt’s channel.

  • @insteresting
    @insteresting 6 месяцев назад

    Very very cool library! Unfortunately, Typescript doesn't yet provide a type for NaN literals (not a number), even though NaN is also a falsy value, so when filtering out NaN from an array, it doesn't take NaN as a falsy value at a type level. NaN values propagate through the application at runtime the same way the any type does during development, making it very difficult to debug and find where a particular NaN came from. The same occurs when attempting to properly type ± Infinity as a literal type. I hope it get fixed soon..

  • @artyomtaranenko2267
    @artyomtaranenko2267 Год назад

    Matt Pocock really cool)

  • @Mothuzad
    @Mothuzad 13 дней назад

    NonFalsy seemed to have overlooked document.all. However, if this oversight matters to anyone, mercy be upon their souls.

  • @merotuts9819
    @merotuts9819 Год назад +11

    I've learnt most of the things about Typescript from you, you're the Typescript Wizard for me 🧙‍♂. But still Matt's content are great too 😊

  • @abe10
    @abe10 Год назад +2

    Bald is best

  • @invinciblemode
    @invinciblemode Год назад +1

    Aboot