adspace


What is an interface in typescript?

Answer Posted / Anjana Sachan

An interface in TypeScript is a way to define a structure for an object. It can be used to ensure that an object has certain properties and that these properties have the correct type. For example: `interface Person { name: string; age: number; }`

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current stable version of typescript?

316


Who developed typescript and what is the current stable version of typescript?

275