Lay out the project Let’s start out with a new directory. We’ll name it proj for now, but you can change it to whatever you want
Module Augmentation Although JavaScript modules do not support merging, you can patch existing objects by importing and then updating them.
Public by default In our examples, we’ve been able to freely access the members that we declared throughout our programs. If you’re familiar
React integration To use JSX with React you should use the
Additional module resolution flags A project source layout sometimes does not match that of the output. Usually a set of build steps result
Inheritance In TypeScript, we can use common object-oriented patterns. Of course, one of the most fundamental patterns in class-based programming
Understanding private When a member is marked private, it cannot be accessed from outside of its containing class
Ordering Don’t put more general overloads before more specific overloads:
Publish to npm The Publishing section explains how to publish
Using Namespaces Namespaces are simply named JavaScript objects in the global namespace. This makes namespaces a very simple construct to use
Page 5 of 29