TypeScript · Classes and modules
implements
Checks that a class satisfies an interface without inheriting an implementation.
Syntax
class User implements EntityExample
Example
interface Entity { id: string }
class User implements Entity {
constructor(public id: string) {}
}More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.