JSFiddle - React, Tailwind, and code Playground
by Nibin George
TypeScript
//An interface lets you describe the minimum set of public facing properties or methods that a class has.When an interface type extends a class type it inherits the members of the class but not their implementations. An interface has no implementation, it's just a "contract" of what members/method this type has.
interface FullStack {
backend: string;
frontend: string;
}
class Pirlo implements FullStack {
backend: number
frontend: string
constructor(backend: string, frontend: string) {
this.frontend = frontend;
this.backend = backend;
}
}