[implement TypeScript version Koa from zero]

What will this article say? How to complete a coverage from scratch Koa Core function Node.js Class library Explain from the code level Koa Some reasons for code writing: for example, why must middleware call next Functions ctx What does it have to do with a request We know that the Koa class library mainly has the following important featu ...

Posted on Mon, 29 Nov 2021 20:37:05 -0500 by merebel

When Koa meets Typescript

Recent restructuring of the Operations Side Mid-stage project, the current selection is koa2+typescript. In the actual production, we really understand typescript Benefits of type. To illustrate the advantages of typescript more visually, let's start with a scenario: BUG site As a particularly flexible language, the disadvantage is that in ...

Posted on Thu, 18 Nov 2021 12:47:29 -0500 by jredwilli