5 NEW Features in TypeScript 5.5

Ғылым және технология

In this video CJ shows 5 of his favorite new features coming to TypeScript 5.5
00:00 Intro
00:09 Inferred Type Predicates
01:10 Improved Indexed Access
02:30 Type Imports in JSDoc
03:12 New Set Methods
03:49 configDir Template Variable
04:39 When can I use this?
5.5 RC Announcement | devblogs.microsoft.com/typesc...
TypeScript Type Predicates | www.typescriptlang.org/docs/h...
Control flow analysis for element access with variable index| github.com/microsoft/TypeScri...
TC39 Proposal Set Methods | github.com/tc39/proposal-set-...
Set Methods on MDS | developer.mozilla.org/en-US/d...
TypeScript 5.5 Iteration Plan | github.com/microsoft/TypeScri...
------------------------------------------------------------------------------
Hit us up on Socials!
www.syntax.fm/links
Brought to you by Sentry - Use code "tastytreats" to get 2 months free - sentry.io/syntax
#typescript #javascript #webdevelopment

Пікірлер: 10

  • @studiousllama4776
    @studiousllama477614 күн бұрын

    Man, TS's inference is so powerful. It's insane how much it's able to deduce.

  • @moy2010

    @moy2010

    13 күн бұрын

    To infer is the opposite of to deduce.

  • @picblade
    @picblade13 күн бұрын

    Meanwhile, massive migration to JS and Doc, leaving these monstrous redundant constructs in the past 😊

  • @trappedcat3615
    @trappedcat361514 күн бұрын

    It looks like we are getting closer to computed types with the filter example.

  • @rohit87k
    @rohit87k13 күн бұрын

    CJ CJ CJ ..... Yeah

  • @thedelanyo
    @thedelanyo14 күн бұрын

    In the first and second examples, I guess assert can likewise be used?

  • @CodingGarden

    @CodingGarden

    14 күн бұрын

    Yes! In the current version of TypeScript, a type assertion would fix the error. It is nice that one is not needed in v5.5 though.

  • @jamesmoynihan948

    @jamesmoynihan948

    14 күн бұрын

    Ya I hate running into that one. When you provide a type check clause right before the index error line, it's a super frustrating squiggly.

  • 6 сағат бұрын

    I did not understand anything at all. Why people are getting faster everyday?

  • @SRG-Learn-Code
    @SRG-Learn-Code12 күн бұрын

    I'm a hobbie-scripter and ts is a constant pain. I want it, kind of, but I hate it.

Келесі