@ty-ras-extras/state-zod
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Typesafe REST API Specification Extras - State Provider Callbacks With Zod

Coverage

This folder contains @ty-ras-extras/state-zod 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @ty-ras-extras/state-zod

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

46.8 kB

Total Files

29

Last publish

Collaborators

  • staz