Definition File Theory: A Deep Dive
Structuring modules to give the exact API shape you want can be tricky. For example, we might want a module that can be invoked with or without new
to produce different types, has a variety of named types exposed in a hierarchy, and has some properties on the module object as well.
By reading this guide, you’ll have the tools to write complex definition files that expose a friendly API surface. This guide focuses on module (or UMD) libraries because the options here are more varied.
Please login to continue.