Create TypeScript Interface
The following lines of code will create an interface in TypeScript:- As you can see, the interface will declare the type of each element within it! The following lines of code will create an object based on the above interface. Once the interface has been declared you can use it just like the primitive types…