Our great sponsors
-
-
-
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!
-
ajv
The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)
-
-
-
class-transformer
Decorator-based transformation, serialization, and deserialization between objects and classes.
-
-
InfluxDB
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.
-
typescript-runtime-type-benchmarks
📊 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.