1.0.0 • Published 12 months ago

@ty-ras-extras/state-io-ts v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Typesafe REST API Specification Extras - State Provider Callbacks With IO-TS

Coverage

This folder contains @ty-ras-extras/state-io-ts library which exposes API with types and functions to create state validation callbacks which are most intuitive and easy to use with typical setups. The state passed to endpoint handlers is modeled as object, and endpoint handler specify which properties they need from that object by providing an array of property names. The state callback provided by this library will then produce EndpointStateValidator object of @ty-ras/endpoint library, which is then used by TyRAS server implementation to validate the state.