Check types at the top level or in each function?

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

InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • zod

    TypeScript-first schema validation with static type inference

    I guess if you studying about this, it's cool way, but if you want use in your application i recommend use some library like zod (https://github.com/colinhacks/zod). There are some functionalities that make your work easily. But this is not a rule, just a suggestion.

  • InfluxDB

    Purpose built for real-time analytics at any scale. InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.

    InfluxDB logo
  • runtypes

    Runtime validation for static types

    I wouldn't reinvent the wheel: https://github.com/pelotom/runtypes

  • io-ts

    Runtime type system for IO decoding/encoding

    There's also libraries that will generate the parsing functions for you like io-ts or zod that could be interesting to look into

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

  • I squeezed every brain cell to create this library

    7 projects | /r/typescript | 25 Mar 2021
  • TDD

    2 projects | /r/CharruaDevs | 7 Dec 2023
  • Why I Like Using Maps (and WeakMaps) for Handling DOM Nodes

    1 project | news.ycombinator.com | 6 May 2023
  • When should I use runtime checks (and which runtime checker should I use)?

    2 projects | /r/typescript | 14 Mar 2023
  • how to strictly type this?

    1 project | /r/typescript | 19 Nov 2022

Did you konow that TypeScript is
the 2nd most popular programming language
based on number of metions?