Maybe I should make a video on SvelteKit and tRPC.
@greendsnow Жыл бұрын
@@JoyofCodeDev is trpc any useful after this update? End to end AUTO typing is here already.
@JoyofCodeDev Жыл бұрын
@@greendsnow Depends! 😄
@zed5790 Жыл бұрын
@@JoyofCodeDev yes please make a video on it!
@anton-shubin-live Жыл бұрын
@@JoyofCodeDevtrpc video would be awesome! 🙂
@Huntabyte Жыл бұрын
Love this feature :) Although I still have restart the TS server every few minutes to make it comprehend
@JoyofCodeDev Жыл бұрын
TypeScript is trying. 😂
@maskman4821 Жыл бұрын
This is a great tutorial, default type is no longer required, thank you for the reminder, from now on type is not much a deal while working with Sveltekit, awesome 🤩😍🤗😘😄👏
@vrx_ui Жыл бұрын
Always giving the best information about svelte and sveltekit! TY!!
@cre8ive65 Жыл бұрын
This is honestly such a lifesaver.
@georgeoutters56574 ай бұрын
Great now I can clean up my code a bit. Btw, that vs code theme looks nice, which one is it?
@maelacier6138 Жыл бұрын
No more arrow functions ! What a time to be alive
@JoyofCodeDev Жыл бұрын
Being so used to it I didn't even consider it at first. 😄
@mcchikin2751 Жыл бұрын
cool man thank you. Exactly what I was looking for right now :D
@JoyofCodeDev Жыл бұрын
I aim to please.
@TheHermitHacker8 ай бұрын
Thank you very much!
@HeatingUpDuke Жыл бұрын
Wasn't aware of this, awesome feature indeed!
@zzej Жыл бұрын
this is awesome. thanks for sharing!
@Loui3Hunna Жыл бұрын
This is so nice, but does this also apply to RequestHandler types as well? And when running svelte-check this gets treated as an error. Do you know if there is something I have to update for it to not count as errors?
@JoyofCodeDev Жыл бұрын
It should work for everything! 😄
@SARUNYAAMP8 ай бұрын
What if I have to send the data as props to a component? What happens to the type of data in that component? Struggling with this for a long time
@JoyofCodeDev8 ай бұрын
I would treat those types separately.
@DanielRios549 Жыл бұрын
The typing does not work for "$page.data", is there a fix for this problem?
@cis84muz Жыл бұрын
That is awesome! But I noticed that when I try to use these data from `import { page } from '$app/stores';` the typings do not work :/ Maybe it will be fixed
@JoyofCodeDev Жыл бұрын
Yeah! 😄
@d47im5e Жыл бұрын
Thank G.O.D!
@kaidoesthingsxyz Жыл бұрын
Now I can use export function again 😁
@kickbuttowsk2i Жыл бұрын
discord notification gang
@jost2404 Жыл бұрын
and how does a API fetch look like ?
@JoyofCodeDev Жыл бұрын
This only works for special SvelteKit values and not types in general.
@skylerdjy Жыл бұрын
i will also be calling ">" pointy boi from now on
@justmrmendez Жыл бұрын
I'm fighting more with TS server that my code, i don't know if my types are wrong or TS server is wrong anymore. This is not a good experience.
@JoyofCodeDev Жыл бұрын
Restarting the TypeScript server resolves the problem for me but I agree having to do it often sucks.
@rossvold Жыл бұрын
my todo list just got much longer 😂
@MrArdo-branch-main Жыл бұрын
HAHAHAHA... we need to clean up this mess right now.
@7heMech Жыл бұрын
I never used ts to begin with so it's a win-win situation.
@JoyofCodeDev Жыл бұрын
Everyone wins because you don't have to use JSDoc types.
@brainshack9077 Жыл бұрын
Sorry but having to rely on people on my team using a specific (imho bad) IDE with a specific plugin to have type safety, seems like a bad idea to me.
@JoyofCodeDev Жыл бұрын
This works for any editor.
@ult19x65 Жыл бұрын
I agree. It's so funny that people live on this bubble that svelte is amazing and it's so mid
@pixel7038 Жыл бұрын
Me want type
@JoyofCodeDev Жыл бұрын
You get type-safety from SvelteKit but you have to write types for everything else.