Don‘t Use Readonly in TypeScript! Let‘s Build A Better Advanced One!

  Рет қаралды 2,499

Typed Rocks

Typed Rocks

Күн бұрын

Пікірлер: 21
@LeviSchuck
@LeviSchuck 8 күн бұрын
I am impressed with the consistent high quality of your content. Typescript type system has been very difficult to learn and your videos have really propelled me forward in making cool things. Thank you.
@Typed-Rocks
@Typed-Rocks 8 күн бұрын
Love to hear that 🙏
@LePhenixGD
@LePhenixGD 2 ай бұрын
This is super practical ! Man TS is so powerful !!!
@Typed-Rocks
@Typed-Rocks 2 ай бұрын
@@LePhenixGD Thank you 🙏 appreciate it
@DarioCooks
@DarioCooks 2 ай бұрын
You should be hired my Microsoft to fix typescript 🎉
@Typed-Rocks
@Typed-Rocks 2 ай бұрын
Thanks man 😁, really appreciate that you like it
@ThiagoVieira91
@ThiagoVieira91 2 ай бұрын
Wow your channel was one of the best KZbin recommendations. Astonishing content.
@Typed-Rocks
@Typed-Rocks 2 ай бұрын
Thank you very much. Really appreciate that. Keeps me going :)
@IbrahimAbdallah-tr4wq
@IbrahimAbdallah-tr4wq Ай бұрын
Love your content, practical and straightforward to the point, keep up the good work 👏
@Typed-Rocks
@Typed-Rocks Ай бұрын
Thank you. Really kind of you 🙏
@jordyperez9969
@jordyperez9969 Ай бұрын
Do you have a video that talks about conditional properties, for example that if in a function I send a specific prop that another one is automatically required, and if it was not sent then the other prop is kept as optional or can even be done with more props
@Typed-Rocks
@Typed-Rocks Ай бұрын
I don‘t have one currently but let me think about making one 🙏
@jordyperez9969
@jordyperez9969 Ай бұрын
@@Typed-Rocks I'll be waiting for the video man. Thanks
@deatho0ne587
@deatho0ne587 2 ай бұрын
Just do `const obj ={a: 1, b: [234, 567], c:{d: {e: 890}}} as const;`, now that does not work with Date types but is 100% easier. Now the video is more about taking away things like setters from existed objects, which is useful.
@Typed-Rocks
@Typed-Rocks 2 ай бұрын
Yes, absolutely. When you have to do it once. But I really like the ability to have it more generic. But it as always depends :)
@loO5r
@loO5r 2 ай бұрын
Sadly this does not work anymore as soon as you add a type to your variable, e.g. `const obj: FooType = {a: 1, b:[234, 567] } as const;`
@deatho0ne587
@deatho0ne587 2 ай бұрын
Yeah, that is true.
@Niksorus
@Niksorus Ай бұрын
​@@loO5rIn that case, use satisfies after as const instead of typing the variable.
@Caldaron
@Caldaron 2 ай бұрын
whats the extension you use that shows the data next to the code in 3:36?
@Typed-Rocks
@Typed-Rocks 2 ай бұрын
@@Caldaron It‘s called TypeScript Worksheet and you can download it on Jetbrains Marketplace or VSCode Marketplace. If you need any help setting it up, let me know :)
@rikrose
@rikrose 2 ай бұрын
@@Typed-Rocks A follow-up question - the error displayed at 5:54 - which plugin is doing that for you?
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 97 М.
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 32 МЛН
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 11 МЛН
I'm Ditching Try/Catch for Good!
10:29
Web Dev Simplified
Рет қаралды 111 М.
Let's Fix The Fatal Flaw in TypeScript's Union Types!
13:45
Typed Rocks
Рет қаралды 21 М.
Why use Type and not Interface in TypeScript
14:12
ByteGrad
Рет қаралды 210 М.
How Did I Not Know This TypeScript Trick Earlier??!
9:11
Josh tried coding
Рет қаралды 214 М.
TypeScript: Should you use Types or Interfaces?
4:06
Matt Pocock
Рет қаралды 160 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 540 М.
2 ways TypeScript LIES to you
4:29
ThePrimeTime
Рет қаралды 48 М.
7 Awesome TypeScript Types You Should Know
8:57
Josh tried coding
Рет қаралды 86 М.
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26