Decorator Contracts is a library that provides the ability to create and assign Code Contracts to ECMAScript and TypeScript classes. This enables enforcement of the Liskov substitution principle and the Open-closed principle of SOLID to support Design By Contract™.
overrides
solid
decorators
precondition
postcondition
invariant
assertion
rescue
encapsulation
liskov-substitution-principle
exception-handling
code-contracts
design-by-contract
requires
demands
behavioral-subtyping
organized-panic
material-implication
if-and-only-if
-
Updated
Sep 3, 2024 - TypeScript