contract-driven development

Agreeing on the exact shape of the data two parts of a system exchange first, and building both sides against that agreement.

In more detail

In TypeScript a contract is an interface or type that both caller and implementation must satisfy. Across services, the contract is usually an OpenAPI document from which both sides get their types.

Related terms

Taught in

References