Now You Can Use TypeScript In Your Svelte Markup

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ธ.ค. 2024

ความคิดเห็น • 33

  • @JoyofCodeDev
    @JoyofCodeDev  ปีที่แล้ว +10

    This only works if you include `lang="ts"` in your `` tag.

  • @SilvestreVivo
    @SilvestreVivo ปีที่แล้ว +21

    This is a very big step forward for Svelte apps

  • @sylensdrake9706
    @sylensdrake9706 ปีที่แล้ว +7

    I use Svelte now for about a Year with a couple of hobby and 2 production apps... And I love the framework.
    All the new Svelte 5 changes really bring alot to the table and Im looking forward getting to use em in production.

  • @DezZolation
    @DezZolation ปีที่แล้ว

    Holy ****, I literally ran into this problem yesterday. Svelte is not disappointing me ❤. Love it.

  • @hnazmul
    @hnazmul ปีที่แล้ว

    Really Happy for thats awesome changes.. yeah.. very excited.

  • @benediktzwolfer4193
    @benediktzwolfer4193 ปีที่แล้ว

    Lol this is the exact problem I run into yesterday, thanks for the update!

  • @Nycolaide
    @Nycolaide ปีที่แล้ว +1

    Thank you for this video, it’s great news :)

  • @HeatingUpDuke
    @HeatingUpDuke ปีที่แล้ว

    Very clear digest thanks!

  •  ปีที่แล้ว

    Amazing, this is a great step, we keep moving forward

  • @local9
    @local9 ปีที่แล้ว

    This is amazing

  • @RuiAndrada
    @RuiAndrada ปีที่แล้ว

    Thanks for the update!

    • @JoyofCodeDev
      @JoyofCodeDev  ปีที่แล้ว +1

      Thank you for becoming a member! 🙏

  • @jmagrippis
    @jmagrippis ปีที่แล้ว

    Great! I want snippets, but they were unusable due to no Typescript support. Nice you actually put a snippet example in the end!

  • @i.j.5513
    @i.j.5513 ปีที่แล้ว

    Wow that's amazing! This will reduce a lot of boilerplate for sure! The feature to add type annotations to templates is something that's sorely missing from a lot of more mature frameworks a well (looking at you Angular)

  • @kutayguler1242
    @kutayguler1242 ปีที่แล้ว

    LETS GOOOOOOOOOOO

  • @ehopechinchas
    @ehopechinchas 11 หลายเดือนก่อน

    FINALLYY

  • @coollobsterr
    @coollobsterr ปีที่แล้ว

    so cool 😎

  • @VarunGupta3009
    @VarunGupta3009 ปีที่แล้ว

    Finally!

  • @Danielo515
    @Danielo515 ปีที่แล้ว

    I love how they said thar snippets concept was stupidd, and not needed but they ended implementing it

  • @el.bromas
    @el.bromas ปีที่แล้ว

    🚀🧡

  • @AnilKumar-w5l2q
    @AnilKumar-w5l2q ปีที่แล้ว +1

    Is snippets just like local / small components?

  • @daleryanaldover6545
    @daleryanaldover6545 ปีที่แล้ว +2

    Well, you can also cast types using JSDoc syntax. Been using JSDoc for types and documenting props.

  • @hebestreitfan6973
    @hebestreitfan6973 ปีที่แล้ว

    Types have always been cool. Svelte's Typescript troubles have been incredibly uncool, however.
    How SvelteKit defaults to JSDoc. How you have to do lang="ts".
    Hopefully the more subtle problems are a thing of the past now?

  • @shyamlohar1996
    @shyamlohar1996 ปีที่แล้ว

    What is the name of the theme that you are using? 😍

  • @gadgetboyplaysmc
    @gadgetboyplaysmc ปีที่แล้ว

    ive always worried about this

  • @ppcamps
    @ppcamps 4 หลายเดือนก่อน

    To be honest, I didn't like these new changes at first, because now, it looks like React, and react is a piece of garbage.
    But these "minor" changes, like "fixing TS directly", snippets, and events now can be passed as props, definitely makes me love svelte again.

  • @otockian
    @otockian ปีที่แล้ว +4

    Types should of always been cool, I feel like younger developers always learn why we did things a certain way the hard way. Just like they say Design Patterns are stupid, yet they use them every single day without realizing they are using them which is just hilarious. Next up they will find out why OOP is useful, instead of just labeling it as bad without understanding it's strengths.

  • @LinhLinhBD
    @LinhLinhBD 7 หลายเดือนก่อน

    I like svelte I use svelte all the time, but this is crap.

  • @heugh_jazz
    @heugh_jazz ปีที่แล้ว

    as const as option?... that's some ugly syntax

  • @gebreeze
    @gebreeze ปีที่แล้ว

    nice!