TypeScript. Interfaces

Home » Tutorials » JavaScript » TypeScript. Interfaces
In this lesson we’ll talk about interfaces in TypeScript.
As we know, JavaScript has got several build-in types. But in our programs we often use objects with different structure and nesting. For typing these interfaces interfaces are used.
Interfaces description can contain properties and methods.
In fact interface make you realize all its props and methods. But you can define interface property or method as optional using question mark sign.

Подписаться на рассылку

Будьте в курсе - получайте последние статьи на свой email

Ваша подписка успешно оформлена

Pin It on Pinterest

Share This