Thank u bro, nice video! I hate JS/TS, but for the first time, I started to like it
@shafiq_ramli5 күн бұрын
I don't fully learn typescript yet but I kinda get the concept of generics from this video. Good job 👍🏻
@fsniraj5 күн бұрын
That's great to hear!
@kashmirtechtv29485 күн бұрын
this is the best video for geenrics
@emotional_damage__5 күн бұрын
Thank you bro. Nice content!
@abhishekmagar98435 күн бұрын
Thank you for useful information. what about post body payload if it may be Object or array or null ?? which mean we don't have idea what is get as payload while making function for, CRUD operation.
@fsniraj5 күн бұрын
I don't exactly know if you are asking for something this. const postToAPI = async (endpoint: string, body: B) => { const result = await fetch(endpoint, { method: "POST", body: JSON.stringify(body), }); if (result.ok) return (await result.json()) as T; };