Interface (TypeScript)

An interface describes the shape of an object — which properties it has and what types they are. It is a contract the compiler checks against, with no effect…