
ts-rest offers a simple way to define API contracts with type safety, enhancing the development experience for REST APIs.
ts-rest is a library that provides an RPC-like client and server helpers for defining contracts in a pure REST API. It enables developers to achieve end-to-end type safety without the need for code generation, simplifying the process of API implementation and consumption.
Key features:
With ts-rest, developers can create a contract, implement it on their server, and consume it in their client applications seamlessly. This library is particularly useful for teams looking to incrementally adopt type-safe API practices.