Tagged articles
3 articles
Page 1 of 1
WecTeam
WecTeam
Dec 19, 2019 · Backend Development

Master TypeScript Migration from Koa2 to Midway: Tame any and Build a Strong Type System

This article shares practical experiences and techniques for migrating a medium‑size Koa2 project to TypeScript with Midway, covering tsconfig settings, the dangers of any, strategies using unknown, strict compiler options, type guards, assertion functions, and how to construct a concise, reusable type system for backend models.

KoaMidwayTypeScript
0 likes · 27 min read
Master TypeScript Migration from Koa2 to Midway: Tame any and Build a Strong Type System