Skip to main content

Interfaces

Interfaces are abstract types that can be implemented by other types. When a type implements an interface, it promises to provide the fields defined in that interface.