Mark As Completed Discussion

Interfaces

TypeScript is an object-oriented programming language, but it is a multi-paradigm just like JavaScript. TypeScript supports interfaces which is a contract on how a class needs to be implemented. The interface type in TypeScript is not converted to JavaScript during transpilation but is strictly used for type checking (duck-typing). Apart from their standard use case, interfaces in TypeScript can also be used for declaring types, function types, and array types.

Interfaces

Even though it is a JavaScript file, with a linting extension on VS Code, you can view messages like the one shown above.