Our great sponsors
TypeScript-first schema validation with static type inference
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!
The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)
Runtime validation for static types
Decorator-based property validation for classes.
Decorator-based transformation, serialization, and deserialization between objects and classes.
Runtime type system for IO decoding/encoding
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
📊 Benchmark Comparison of Packages with Runtime Validation and TypeScript Support
Learning Typescript, I had that same reaction. Others already explained the main reason but there is also another point to it, which I learned while refactoring parts of the runtime type benchmark:
Yea i guess my question was poorly worded. I understand that validation should not be language level. However, one thing that i would like to see is being able to get the structure of the type at runtime, which i guess would just be a macro. The issue https://github.com/Microsoft/TypeScript/issues/4892 goes over adding macros to the language. The first use case shown there is a validator, which is exactly what i should have asked about in the first place.
Is there any reason not to use typescript?
5 projects | reddit.com/r/typescript | 16 Nov 2022
How to check that an 'unknown' object has a specific key and that the key is a specific type?
5 projects | reddit.com/r/typescript | 11 Jan 2022
Active fork of superstruct?
3 projects | reddit.com/r/typescript | 1 Mar 2022
A few questions about type guards
4 projects | reddit.com/r/typescript | 25 Oct 2021
Minimal and fast runtime API payload sanitiser and error message handling
7 projects | reddit.com/r/typescript | 20 Oct 2021