Description
extend
is a very common pattern in
JavaScript where you take two
objects and create a new one that has the
features of both these objects. An Intersection Type
allows you to use
this pattern in a safe way.
Sep 29, 20201 min read
extend
is a very common pattern in
JavaScript where you take two
objects and create a new one that has the
features of both these objects. An Intersection Type
allows you to use
this pattern in a safe way.