...

/

Type Checking with Intersections

Type Checking with Intersections

This lesson explains how to identify a type using an intersection method.

We'll cover the following...

Using a similar aspect of uniqueness as found in the structure before, it is possible to define a unique type using a generic class and intersection. The result is many new types that have a private, unique property which makes the shared type unique in turn, depending on its implementation.

The epitome of this pattern of intersections is ...