A collection of packages for defining and using type-checked APIs with TypeScript.
TypeScript is a powerful type system layered on top of JavaScript, but lacks type information about values received at runtime. This is an explicit non-goal of the TypeScript language, so we use io-ts to statically type this runtime data. io-ts-http builds on top of io-ts to define codecs that translate between HTTP requests and plain old JavaScript objects. Additionally, it provides a way to group these codecs into route definitions, and then collect the route definitions into an API. The resulting API definitions may then be used on the client and server to have type-checked and runtime-validated HTTP calls in a standardized manner.
npm install
npm run build
npm test
This work is published under the Apache 2.0 license.
SPDX-License-Identifier: Apache-2.0