TypeScript package for type guarding & casting

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/typescript

Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
  • to-typed

    I've published a small package and I'd like to know what you all think about it. I've published to GitHub and also uploaded it to npm.

  • zod

    TypeScript-first schema validation with static type inference

    Is this not good enough? https://github.com/colinhacks/zod

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    I just tried this and I really like how guards can operate on the input type, so you can do stuff like, if an input is A | B the output is B. This is something I wanted to do, but it's not possible if guards are wrapped in a class. I even opened an issue for this very reason.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts