Function Types Interfaces are capable of describing the wide range of shapes that JavaScript objects can take. In addition to describing an
Merging Namespaces Similarly to interfaces, namespaces of the same name will also merge their members. Since namespaces create both a namespace
this parameters Unfortunately, the type of this.suits[pickedSuit] is still any. That’s because this
Using a class as an interface As we said in the previous section, a class declaration creates two things: a type representing instances of the
Page 29 of 29