Bad behaviour of objects in typescript

preview_player
Показать описание
Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.

All the learning resources such as code files, documentations, articles and community discussions are available on our website:

You can find our discord link, github link etc on the above website.

Рекомендации по теме
Комментарии
Автор

Dope Quality + Dope Thumbnail = Benchmark

technicalom
Автор

3:28 - it's not working because of the wrong syntax.

You need to define types of the object separately by type annotation. It takes value inside the object not type.

So it must be:
function createUser({
name,
isPaid,
}: {
name: string;
isPaid: boolean;
}) {
// ...
}

vedantnn
Автор

Hi Greetings
can you make a video on "null vs unknown vs undefined vs never" and one on "keyof and typeof with keyof" and on mapped types and on enums as well

burhanmaliksher
Автор

5:33 - but the object takes any as it type.

MdThamidulHasanSakib
Автор

Hi Hitesh,
Thank you so much for your videos you have been great help.
As Heroku is closing its free tier, can you please make a video with alternatives to deploy docker containers?

pman-codes
Автор

scaler Dont know on whose video they are doing their add

uncommon_common_man
Автор

function createUser({Name:string, Last:string})
{
return "Pankaj Shah"
}
createUser({Name:"Pankaj", Last:false})

This is not working sir? please help me out. Its my humble request.

pankajshah
Автор

You have announced a new challenge but you haven't announced the previous challenge winers name. When will you annouce the names?

Iammrunkown
Автор

as we are learning typescript we are also feeling that 70% of the audiance doesn't subscribe you is also part of typescript

greenshaheen
welcome to shbcf.ru