Interfaces (TypeScript tutorial, #6)

preview_player
Показать описание
Interfaces is one of TypeScript's biggest advantages over JavaScript. It allows you to define what properties objects should have.

Continue watching my TypeScript tutorials:

► About me
Follow me on Twitter:

Check out my blog:

Subscribe to newsletter:

Like my Facebook page:
Рекомендации по теме
Комментарии
Автор

Precise and to the point. Loved it. Glad I opened this.

vipulsinghthakur
Автор

Very straightforward and taught like a real human!

olasupoodebiyi
Автор

Very first TS tutorial as a beginner, and understood the basic. Impressed with your explanation and video clarity. Thank you.

dushananuradha
Автор

Extremely well explained. 5 stars. 5 thumbs up. 5 puppies

jacksonjex
Автор

Nice, short, simple, and well-explained.

chrisperry
Автор

Thank you for this great explanation Sir !

ToukiMS
Автор

man that was really clarify! Thanks for the explantion. Here starting with typescript, very useful

nacholupotti
Автор

Really simple and easy to understand explanation, thanks a lot !!!

AbhishekVerma-cmpm
Автор

short and simple. thanks for explaining.

javascript_developer
Автор

What's the difference between type and interface?

VladyVeselinov
Автор

One suggestion: It is always better for a tutor to have more visible, larger texts.

codewizard
Автор

Is interface always creates on top of the code?

Why we are still keep using variables(width, length, height) in class if we follow from interface?

bektursunsamatuulu
Автор

Very nice, but would have liked to see function definitions in the interface as well.

Daniel-fnhf
Автор

i did not understand your function call is it typescript syntax

wolfgangamadeusmozart
Автор

greate video! Wondering though how one defines a conditional attribute in the interface. for ex:
we want to create a circle object, and there, the props that are sent in should contain EITHER radius: int; OR diameter: int. but note that none of these are optional, it's either, or, one of them has to be given. How does one do that?

Thank you :)

RezaMohseni
Автор

how do you display vs code suggestion bar?

davidpower
Автор

To be honest, interface is nothing. It's just a way of saying something that means many things, exactly like the word 'drone', it means a continuous humming sound and yet it also means it's a named as well. That's where ignorance lies, yes from you people of today who have made words that make no sense whatsoever. How does something become whatever it means, and then it means many other things when the crappy word is already a known word, 'inter', as in interior, and face, as in a person's face, a door face, a car face, etc. Typical mixture of words that are already used to mean one logic when we talk and write. But to mix one known word with another is really confusing. And this interface is one of such confusing jargon added in the English literature that is going to cause problems, given that you already explained what it means. At first I had no idea what interface meant. I thought it means the image you see on a computer screen, e.g. like that of a software of which you work on, for example like Blender Foundation. But no, now you say that interface is a connection of a device to another device by cables, flash drive external drive, DVD drive, HDM to TV, etc. Waste of Time learning computer jargon in my opinion. If I am to connect a device to another device, I just say, cables - as in HDMI cables, flash stick or usb drive cables, printers and other computer devices cables, each has a name for the connection of any devices, and cables, flash drives, etc., aren't interfaces. So, it's just the same with computer geeks, using words to make an unusual name for something that makes no sense whatsoever. The same with 'drone', it's a word that has present and past participles, one plural word and a number of definitions. So, how does it become a name to call shitty rc models and aircraft drones? Have you ever heard of names, such as John, Peter, Phillip, Stan, Mark, etc., ever had present/past participles and definitions? No, so, how does a word become a name, not just a name but how can it be used to name more than a dozen gadgets, including several flying pilotless military aircraft that the ignorant stooges call them UAVs? I mean how does an aircraft flown by a pilot become unmanned when the word 'unmanned' is not used for aircraft? If it is a female pilot, would you say 'unwomanned'? Does it make sense? The word is only used for manned and unmanned land vehicle, not for aircraft. But the unbelievable illiterates of today think 'unmanned' is applied to aircraft. Anything that flies without a pilot is said to be pilotless. And, an aircraft is not a vehicle, it's an aircraft, full stop. This is what today's society have been taught in schools run by drug addicted teachers unlike those of my days when they were strict in grammar and spelling. But today, who gives a f***?

mickcarson