HunterScript
HunterScript
  • 159
  • 107 776
SvelteKit: Hooks
Learn the basics of hooks in SvelteKit!
Chapters:
0:00 - 0:47 - Different types of hooks
0:48 - 2:56 - How to setup hooks
2:57 - 3:15 - Locals
3:16 - 7:24 - Example using locals
7:25 - 8:19 - Using data from Page State
8:20 - 8:44 - Summary
มุมมอง: 215

วีดีโอ

SvelteKit: Page Options (Prerendered/SSR/CSR)
มุมมอง 116หลายเดือนก่อน
Learn how to use all page options in SvelteKit! Chapters: 0:00 - 0:21 - Intro 0:22 - 1:49 - Basic Overview 1:50 - 5:10 - SSR vs. CSR 5:11 - 9:13 - Prerender 9:14 - 9:36 - Summary
SvelteKit: Form Actions
มุมมอง 184หลายเดือนก่อน
Learn how to use form actions in SvelteKit! Chapters: 0:00 - 0:23 - Intro 0:24 - 1:02 - 2 reasons for Form Actions 1:03 - 2:29 - Default action 2:30 - 4:33 - Named actions 4:34 - 6:57 - Form prop 6:58 - 8:32 - use:enhance 8:33 - 9:01 - Summary
SvelteKit: Invalidating Data
มุมมอง 130หลายเดือนก่อน
Learn how to bring in new data into your page via invalidation. Chapters: 0:00 - 0:26 - Intro 0:27 - 1:12 - Example Setup 1:13 - 2:12 - invalidate() 2:13 - 3:00 - depends() 3:01 - 4:13 - invalidateAll() 4:14 - 5:07 - Practical Example 5:08 - 5:24 - Summary
SvelteKit: Redirects
มุมมอง 125หลายเดือนก่อน
Learn how to redirect on the server side as well as on the client. Chapters: 0:00 - 0:13 - Intro 0:14 - 1:23 - redirect() 1:24 - 3:22 - goto() 3:23 - 3:42 - Summary
SvelteKit: Environment Variables
มุมมอง 106หลายเดือนก่อน
Learn how to use environment variables with SvelteKit! Chapters: 0:00 - 0:11 - Intro 0:12 - 0:46 - Vite 0:47 - 1:17 - Dynamic (doc read) 1:18 - 3:03 - Static (private) 3:04 - 3:22 - Static (public) 3:33 - 4:03 - Summary
Personal Story: My Journey into Software Development
มุมมอง 65หลายเดือนก่อน
Hey everyone! I hope that you can take a thing or two away from my personal story into Software Development
Welcome to the channel! @HunterScript
มุมมอง 85หลายเดือนก่อน
Hey there! 👋 I am Hunter, from The Woodlands, Texas - just north of Houston. As a software engineer, I enjoy building applications of all kinds with people from all over the world. 👨🏻‍💻 🌍 I am a huge fan of TypeScript. The tooling is impressive, but what really stands out about TypeScript is how it encourages me to be more mindful of the code I write. As far as frameworks go, 🥇 Svelte is always...
SvelteKit: Api Routes
มุมมอง 155หลายเดือนก่อน
Learn how to create API routes in SvelteKit! Chapters: 0:00 - 0:06 - Intro 0:07 - 2:00 - Creating an API route 2:01 - 2:41 - json 2:42 - 2:49 - error 2:50 - 3:59 - redirect 4:00 - 4:12 - Summary
Sveltekit: File Types
มุมมอง 134หลายเดือนก่อน
Learn the different file types in Sveltekit! We will cover: * page.js * page.server.js * layout.svelte * layout.js * layout.server.js * error.svelte * server.js Chapters: 00:00 - 00:44 - Intro 00:45 - 03:00 - page.js 03:01 - 03:43 - page.server.js 03:44 - 04:46 - layout.svelte 04:47 - 07:07 - layout.js 07:08 - 09:27 - error.svelte 09:28 - 10:13 - server.js 10:14 - 10:32 - Outro #svelte #sveltek...
Sveltekit: File-Based Routing
มุมมอง 135หลายเดือนก่อน
Learn how routes work in Sveltekit! #svelte #sveltekit #javascript #typescript #coding #programming Chapters: 0:00 - 0:22 - Intro 0:23 - 1:52 - Basics 1:53 - 3:53 - Parameter 3:54 - 4:31 - Summary
Svelte 5: Working with Children
มุมมอง 191หลายเดือนก่อน
Learn how to work with children at a basic level in Svelte 5! Chapters: 0:00 - 0:05 - Intro 0:06 - 0:25 - Basic Syntax 0:26 - 0:55 - Quick Example 0:57 - 1:54 - Snippets 1:55 - 2:10 - Summary
Svelte 5: Tick API (Lifecycle Hook)
มุมมอง 214หลายเดือนก่อน
Learn how and why you should use the Tick API in Svelte 5. Chapters: 0:00 - 0:36 - Intro 0:37 -0:58 - 2 reasons for tick() 0:59 - 1:27 - Mechanics of tick() 1:28 - 1:49 - Docs read 1:50 - 2:12 - Summary
Svelte 5: Special Elements
มุมมอง 172หลายเดือนก่อน
Svelte 5: Special Elements
Svelte 5: TypeScript in Markup
มุมมอง 232หลายเดือนก่อน
Svelte 5: TypeScript in Markup
Svelte 5: Global $state w/ Classes
มุมมอง 325หลายเดือนก่อน
Svelte 5: Global $state w/ Classes
Svelte 5: Template Syntax (Part 2)
มุมมอง 111หลายเดือนก่อน
Svelte 5: Template Syntax (Part 2)
Svelte 5: Template Syntax (Part 1)
มุมมอง 271หลายเดือนก่อน
Svelte 5: Template Syntax (Part 1)
Svelte 5: $inspect
มุมมอง 106หลายเดือนก่อน
Svelte 5: $inspect
Svelte 5: $bindable
มุมมอง 321หลายเดือนก่อน
Svelte 5: $bindable
Svelte 5: Snippets
มุมมอง 3582 หลายเดือนก่อน
Svelte 5: Snippets
Svelte 5: $props
มุมมอง 2132 หลายเดือนก่อน
Svelte 5: $props
Svelte 5: $effect and $derived (basics)
มุมมอง 3082 หลายเดือนก่อน
Svelte 5: $effect and $derived (basics)
Svelte 5: Global $state
มุมมอง 3902 หลายเดือนก่อน
Svelte 5: Global $state
Svelte 5: $state
มุมมอง 2622 หลายเดือนก่อน
Svelte 5: $state
Iteration & Conditions in Alpine.js
มุมมอง 453 หลายเดือนก่อน
Iteration & Conditions in Alpine.js
Alpine.js Tutorial
มุมมอง 773 หลายเดือนก่อน
Alpine.js Tutorial
Typography Plugin with Tailwind CSS
มุมมอง 2604 หลายเดือนก่อน
Typography Plugin with Tailwind CSS
Dark Mode in 2 mins using Tailwind CSS
มุมมอง 314 หลายเดือนก่อน
Dark Mode in 2 mins using Tailwind CSS
Customize your Tailwind CSS Config!
มุมมอง 364 หลายเดือนก่อน
Customize your Tailwind CSS Config!

ความคิดเห็น

  • @alejandrofanjul
    @alejandrofanjul วันที่ผ่านมา

    the $effect is called whenever the dependencies are changed, the onMount is only called once when the component is mounted, so how $effect could being replecing onMount hook? they are totally differente behaviours

  • @randallhallii7315
    @randallhallii7315 วันที่ผ่านมา

    My man! Thanks. Short sweet and to the point.

    • @HunterScript
      @HunterScript วันที่ผ่านมา

      Great to hear! 😎👊🏻

  • @williamhorn363
    @williamhorn363 5 วันที่ผ่านมา

    I don't understand what the problem is here? Omit is doing exactly what it is designed to do. You don't have a "fullName" field so Omit does nothing here. Am I missing something?

    • @HunterScript
      @HunterScript 3 วันที่ผ่านมา

      The point of this video is to show that Omit will not bark at you if you are trying to omit a property that doesn't exist. We should be especially careful with this when refactoring.

    • @williamhorn363
      @williamhorn363 3 วันที่ผ่านมา

      @HunterScript Ah! Okay that makes sense. Thanks for the reply

    • @HunterScript
      @HunterScript 3 วันที่ผ่านมา

      No prob! 😎👍🏻

  • @theitalian94
    @theitalian94 5 วันที่ผ่านมา

    I would need more in depth information, how to default style a page with tailwind typography. But this video was still help, maybe a more in depth video how to style with prose would be awesome?! Like ...

    • @HunterScript
      @HunterScript 3 วันที่ผ่านมา

      Totally! Thanks for the feedback, and I agree. I think it would be best to redo all Tailwind videos from scratch.

  • @andrew.derevo
    @andrew.derevo 8 วันที่ผ่านมา

    This is great, thanks a lot for sharing.

    • @HunterScript
      @HunterScript 3 วันที่ผ่านมา

      Thanks for the kind comment, I'm glad you liked it!

  • @hunterbbq3623
    @hunterbbq3623 8 วันที่ผ่านมา

    congrats

    • @HunterScript
      @HunterScript 3 วันที่ผ่านมา

      Thanks! 🙏

  • @PanopticMotion
    @PanopticMotion 9 วันที่ผ่านมา

    I think this would create spaghetti code! IMHO, one way bind is better.

    • @HunterScript
      @HunterScript 3 วันที่ผ่านมา

      I see your point. It's a piece of syntax that you really need to know what is going on before using it.

  • @nigelnyakudya2262
    @nigelnyakudya2262 9 วันที่ผ่านมา

    How best to implement Skeleton load using SSR,

    • @HunterScript
      @HunterScript 3 วันที่ผ่านมา

      I am assuming you mean skeleton ui. I think just creating a state var, toggling that var accordingly, and handling the "Skeleton" in your CSS would work fine. Let me know if that answers your question.

  • @ktappdev
    @ktappdev 9 วันที่ผ่านมา

    Is there a built in function to save state to local storage to survive a reload? Or would i need to do that on my own

    • @HunterScript
      @HunterScript 3 วันที่ผ่านมา

      Not that I am aware of! If you do see something in the future, dealing with local storage let me know here and I will make a video.

  • @dei8bit
    @dei8bit 13 วันที่ผ่านมา

    Bro, your videos, makes me happy hahaha, because you explain very simple the amazing things of svelte & sveltekit and that makes me very excited to use this technology. I really feel that the svelte community is very warm , pretty cool magic By any chance, do you know if there is a practical way to add typescript to a sveltekit project already started with javascript from the CLI?

    • @HunterScript
      @HunterScript 11 วันที่ผ่านมา

      I’m glad you are liking the videos! 😎👊🏻💯 That’s a good question, I was just thinking about that the other day. If you figure it out please let me know! 🙏

    • @dei8bit
      @dei8bit 10 วันที่ผ่านมา

      @@HunterScript yeaaah!!!! really enjoy them :) as soon as I know I will leave it here, so far it seems the most efficient solution is to create a new project (with ts) and move the files.

  • @teamtmc7384
    @teamtmc7384 16 วันที่ผ่านมา

    i was waiting for a video like this for so long , I have been using sveltekit for 2years without understanding hooks so well , I hope you make a video about sveltekit + websockets in the future

  • @pauljbarry3
    @pauljbarry3 21 วันที่ผ่านมา

    What's the point of the snippet? Couldn't you just move the body of the snippet into the each loop?

    • @HunterScript
      @HunterScript 20 วันที่ผ่านมา

      Great question! Svelte only allows 1 component per file, so snippets is Svelte's answer to that constraint. I will reach for snippets when I think a piece of code should be extracted out and I don't want to create another component all together, so snippets lets me keep it in that file. Yes, if you have just 1 piece of iteration, then maybe a snippet is not the best to use, but if you have multiple iterations that use the same code inside the iteration, then it could be a good idea to create a snippet. Also, you can pass snippets to components which is handy.

    • @pauljbarry3
      @pauljbarry3 20 วันที่ผ่านมา

      @@HunterScript Yeah, that makes sense to me, like a situation where you have some elements that you might what to be inside of a link in one situation and then not in a link in another, then a snippet makes sense

  • @bmehder
    @bmehder 22 วันที่ผ่านมา

    So useful and concise.

    • @HunterScript
      @HunterScript 22 วันที่ผ่านมา

      I am glad you liked it!

  • @scorpiondev
    @scorpiondev 24 วันที่ผ่านมา

    KEEP UP THE GOOD WORK MAN !!

    • @HunterScript
      @HunterScript 24 วันที่ผ่านมา

      Thanks man! Glad that you like the videos!

  • @siamhasan288
    @siamhasan288 24 วันที่ผ่านมา

    Thank you for these tutorials 🙏

    • @HunterScript
      @HunterScript 24 วันที่ผ่านมา

      No prob! I am glad that you are enjoying them.

  • @DevAos35
    @DevAos35 27 วันที่ผ่านมา

    Amigo ativa as legendas em seus vídeos , para pessoas de outros países conseguir entender.

    • @HunterScript
      @HunterScript 27 วันที่ผ่านมา

      Buenísima idea! No sabía que estaban inactivos

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

    tnx i use `if (browser)`

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

      Valid option! 😃

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

    thank u so much

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

      No prob! I hope the video helps!

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

      @@HunterScript tnx if u need suggestion for next videos .. lol: 1- tailwind 2 +error.svelte 3- Skelton ui 3 <svelte: option custom element are good

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

      ​@@hosseinse4079 Thanks for the suggestions! (They are always welcome) I could do some more tailwind videos. I would need to map out what I need to cover. Yep, I will most likely do this, and it will be a lot of videos. I cover +error.svelte in the file types video (just a brief explanation) Skeleton UI looks cool, I've been using Svelte-Shadcn-ui the past year+ I really want to do a course on Playwright, I think the courses on YT are a bit hard to follow so I think there is an opportunity there. Also, I want to cover AWS services. Most of the AWS stuff has an "influencer" vibe, which is not my thing. But if I can find a way to quickly explain them at a high level to help people build a decent mental model fast then I will probably follow through with that. Looking forward to what 2025 brings. Happy New Year!

    • @hosseinse4079
      @hosseinse4079 29 วันที่ผ่านมา

      @@HunterScript happy new year

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

    keep it up

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

      Thanks! 😊

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

    Just wanted to let you know that your short to the point with live-coding examples and explanation is really helpful in understanding each Svelte feature sort of in isolation, this is huge resource to the svelte community specially newcomers. Really appreciate you for doing this, hope you get more subscribers so more people can learn from you. :D - IMO this is almost complimentary with the svelte tutorial available on svelte website.

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

      I really appreciate your kind words! Exactly, my aim is to teach concepts/syntax in isolation without the distractions of a complex example. I’m so glad that your are getting something out of these videos! 😎👍🏻

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

    Sup. Subbed 👍🏽

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

      Thanks for the sub! 😎👊🏻💯

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

    Satisfies doesn’t “widen the type”. It doesn’t change the type in any way. It simply validates that the type of the expression is assignable to the one you provide.

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

      You are right! I think my error here was my teaching approach of blending the example into the syntax.

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

    Nicely explained man, that made a lot of sense. Now, I wonder if you have a video that shows me where I’m going wrong with the `unknown` type…

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

      Thanks man! I am glad that you got something out of the video. Yes, I do have a short on unknown: th-cam.com/users/shorts8NfPR2NsgtA Main Takeaway: Any -> can be any type, but turns off type-checking Unknown can be any type, but does NOT turn off type-checking. This is also a good follow-up video to see the difference in action: th-cam.com/users/shortsNom_q7Mpr2g Hope it helps! 😎👍

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

    some nice in your examples is the contrast of how would be the code if isn't exist the features of svelte

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

      😁✌🏻

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

    when use const {prop1,...,propN} and when use let {prop1,...,propN} ??

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

      Good question! I just use let since that is what they use in the docs. But I haven’t used const 🤔

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

      @@HunterScript yap!! idk yet what is the good use of each one

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

    i just wondering if there's a way to reduce the < ()=> counter.increment() > syntax. for example, wrapping that funcion or reassigning it , :o

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

      @dei8bit Inside our onclick handler we need to use a function when dealing with state w/ classes. You could create a function that wraps around the class but I think that would defeat the purpose a bit using classes since you could just use the function approach shown at the beginning of the video. I hope this explanation makes sense!

    • @sikritidakua
      @sikritidakua 24 วันที่ผ่านมา

      Yeah you can. Instead of `increment(){ ... }` you could declare the function like this `increment = () => { ... }` You could try to `console.log(this)` inside the increment function to understand why this happens :)

    • @HunterScript
      @HunterScript 24 วันที่ผ่านมา

      Right on! I’m going to give this a look

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

    so nice shorts bro, i just love it

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

      Thanks man! I appreciate the views 😎👊🏻💯

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

      @@HunterScript go ahead!!! ☺ you format is nice, very kindly , minimalist, chill, i really enjoy

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

      @@dei8bit Thank man! I really appreciate it! I try to just teach syntax/concepts without the example getting in the way. I figure that if people understand the tools, then they can apply them to fit their own use cases 😊

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

    tnx

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

    do u have video about hooks in svelte?

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

      That is on my list! Soon I hope to cover most of SvelteKit. We need more SvelteKit vids on YT.

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

    javascript is drunken

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

      Haha I used to teach JS in clases to high schoolers and junior high and when we would get to coercion I would apologize in advance. They were blown away that a programing language could have its own set of problems.

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

    tnx

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

      😎👍🏻

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

    thank you

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

      No prob! Thanks for watching the video!

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

      @@HunterScript tnx to u all other videos are about svelte 4

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

    tnx

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

      😎👊🏻💯

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

    thanks

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

      No prob! Thanks for checking out the video!

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

    Can you create APIs that can be exposed to outside of Sveltekit?, lets say a native app as an example.

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

      Absolutely, this api routes are public.

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

      @HunterScript Great, thank you.

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

      No prob! Anytime!

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

    Love the routing system!

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

      Me too! Makes things so much easier!

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

    The april fools joke here is a reference to a joke coffee machine protocol, which is a reference to the first webcam which was just used to check the level of a coffee pot. Obviously if you ask a teapot to brew coffee the correct response is code 418 "I'm a teapot". I don't think russels teapot or the utah teapot have any relation but who knows.

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

      Great insight here! 😎👊🏻💯

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

    "Working with children" "Display a child" "Destructure a child" If you know nothing about programming, this sounds so weird

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

      Hahaha 100%

  • @Vivi-xn9iz
    @Vivi-xn9iz หลายเดือนก่อน

    As P. Diddy once said "It's easy to work with children until you have to fork them"

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

    god created shit in what, 6 days? and he already made JS on the 9th? xD

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

      If only Brendan Eich just spent a little bit more time lol

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

      @HunterScript I wake up every day relieved I don't have to use JS

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

      I am personally a fan, but man… it’s has it’s problems.

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

    This is cursed knowledge. Now I want to return 418 on a silly web call...

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

    🎉

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

    What are the other side effects of treating files as modules? What *are* modules? It would be helpful to have an explanatory short of that! It would probably be challenging to cram so much useful information into a short, but I think that's what the YT algorithm likes and what would be very useful for devs casually browsing YT!

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

      Good idea! *Adding it to the list Personally, I like the restraint of 60 seconds. I have found that it makes me hyper-focused on what really matters. I think leaving out info is just as important as what you mention.

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

    It's my favourite response code! Very important to handle it in your client side code!! 😤

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

    So good!😃

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

      Thanks! 😄✌🏻

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

    Is this like HTMX?

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

      @ericb314 I believe so. From my limited knowledge, I think that the HTMX is a bit more fully featured but I am not positive. With that being said, I am a HUGE fan of Carson Gross (the creator). His essay on "Locality of Behavior" really helped me concretize a few concepts that I had been thinking about for a while. htmx.org/essays/locality-of-behaviour/

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

    Hahaha OMG not another JS framework! 🤣

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

      😁✌🏻

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

    Hey Hunter!

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

      Hey hey! 👋🏻 Hope all is well! Shoot me an email, I’d love to hear an update!

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

      @ just emailed you now!

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

    I have a very educational challenge for you if you're up for it! Given any arbitrarily deeply nested object type like this: { a: { b: any }, c: any} return a union of all valid property accesses as string literals. So for the above example that would be: "a" | "a.b" | "c" I had to use this once when I used a data table component from Nuxt component library, so it's actually useful as well as very educational! I hope you try this out, and if you need any hints or have any questions, I would love to answer them!

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

      This would be a good video to make, I'll at it to the list! 😃✌️

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

    This is very useful, thanks! Here's something else I recently came across. Maybe you want to make a short about it? type Options = { something: string }; const options = { something: "test" } as const satisfies Options; options.something // "test" string literal Some other ideas is to make videos about string literals in typescripts type system. That's where things get really interesting and complex!

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

      Hey Eric, great idea! I will definitely add `as const satisfies` to the "videos to make" list. Thanks! 😊