In existing code, I've come across type parameter declarations like this: <Param extends {}>
.
My question is, what is the meaning of the extends {}
part? How does it differ from simply <Param>
?
Example:
type Fold<S extends {}, D extends {}> = {
folder: ...
}