Deep Dive into Advanced TypeScript: A Live Coding Expedition - Christian Woerz - NDC Oslo 2023

Поділитися
Вставка
  • Опубліковано 6 жов 2024

КОМЕНТАРІ • 15

  •  Рік тому +10

    2:15 mapped types
    6:02 template literals
    10:30 never
    18:30 infer
    20:40 recursion
    34:23 branded types

  • @bibalavida
    @bibalavida 4 місяці тому +2

    This is one of the best tech talks I've ever heard

  • @taherelhossin
    @taherelhossin 11 місяців тому +4

    This talk is just awesome, I really didn't find something similar

  • @LuKaSSthEBosS
    @LuKaSSthEBosS Рік тому +2

    amazing presentation

  • @FunctionGermany
    @FunctionGermany Рік тому +2

    10:25 i think Record and Partial should have been introduced at this point. easier to recognize imo.

  • @quanominh1393
    @quanominh1393 25 днів тому +1

    this is some dark magic that i would use for 3 or 4 time in my life, but it is so cool

  • @jozsefsebestyen8228
    @jozsefsebestyen8228 4 місяці тому

    34:15 I use the recursive object path type for ages for type hinting of translation keys. I grab the en.json as a type and get all possible leaf paths. It works with building translation keys with string concatenation as well. What I was not able to figure out yet, if there is any parameter the translation string expects and force to set those.

  • @varthc
    @varthc 6 місяців тому +1

    Blew my mind 😮

  • @georgyserga8537
    @georgyserga8537 8 місяців тому

    14:39 isn't it an overkill? This syntax is super complex for a simple empty string check.

  • @chaitradangat
    @chaitradangat Рік тому +3

    which plugin is installed to enable this notation // ^?

    • @TheR3dbeard
      @TheR3dbeard Рік тому +6

      It’s called vscode-twoslash-queries :)

    • @FernandoBasso
      @FernandoBasso 11 місяців тому +1

      That same syntax works on TS Playground too, by the way.

  • @FunctionGermany
    @FunctionGermany Рік тому

    44:00 brandName is not used as a value so why not just make it a type argument?

  • @martinngregersen
    @martinngregersen Рік тому

    KISS

    • @watherby29
      @watherby29 6 місяців тому

      This is simple to use once you define the types