This blog post describes how to use TypeScript to create npm packages with CommonJS modules. All the artifacts that are shown can be downloaded via the GitHub repository ts-demo-npm-cjs
(I deliberately have not published it to npm).
In this blog post, we explore classes as values:
This blog post explores static typing for functions in TypeScript.
In this blog post, we examine how class definitions work in TypeScript:
What are types in TypeScript? This blog post describes two perspectives that help with understanding them.
In this blog post, we examine how Arrays can be typed in TypeScript.
A recent blog post explored how TypeScript enums work. In this blog post, we take a look at alternatives to enums.
In this blog post about TypeScript, we examine types related to classes and their instances.
In this blog post, I’ll briefly explain the idea of having sections in source code. The IDE Visual Studio Code has a related concept: folding regions.
TypeScript supports exhaustiveness checking for enums and similar types. This blog post shows how to use idiomatic JavaScript for this kind of check.