-
io-ts is written by Giulio Canti and offers runtime type validations. For more information on io-ts consult the README. The terminology we will use is to encode/decode is codecs, so called runtime representations of specific static types and these codecs can then be composed to build even larger type validations.
-
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.
-
There are more improvements we could make, but we should have a basic understanding of why it might be useful to validate any external data at runtime. io-ts offers more features handling recursive and optional types. Furthermore there are libraries like io-ts-promise that provide more features and useful helpers, the above decodePromise, for example, is available in a more advanced variant via io-ts-promise.