Create a NodeJS API with Koa and TypeScript - #5 - Adding TypeScript Type Definitions

8K views Feb 14, 2023

It's a really nice thing that pretty much every popular third party library out there has at least some existing type definitions. There are circumstances where new additions to libraries do not have type definitions yet, and that is a different challenge. But by and large, third party stuff is covered either immediately, or soon after changes are made. We need to help TypeScript better understand our own code. As a gentle introduction, we're going to define the interface of our Config object.

#Computer Science
  # Engineering & Technology
  # Physics