Why TypeScript Needs Runtime Types

Summary of my bookmarked Github repositories from Jul 9th, 2023

Github repositories

  • akutruff/typescript-needs-types

    The blog post discusses the need for TypeScript to emit runtime type information and highlights the challenges faced by developers in serialization and validation without a reflective type system. It mentions various projects and libraries, such as io-ts, zod, and class-transformer, that attempt to work around this issue. The author urges the TypeScript team to prioritize addressing this problem and provide guidance or recommendations for handling serialization in TypeScript projects. They emphasize the importance of not relying on decorators and suggest alternative approaches like a higher-order function or Type Providers similar to those in F# or C#. The post concludes with a promise of cake and ice-cream if the issue is resolved.