@affordant/contract
v0.2.0
Published
The Affordant wire contract: shared TypeScript types for the _self / _actions hypermedia envelope. Zero runtime, zero dependencies.
Downloads
139
Maintainers
Readme
@affordant/contract
The shared wire contract for Affordant: the TypeScript types that describe the _self / _actions hypermedia envelope.
Both sides of the wire depend on this package so they can never drift apart — the server builds what the client consumes.
affordant(client) consumes the envelope.@affordant/serverproduces it.
Zero runtime, zero dependencies — it ships only .d.ts plus an empty module.
import type { HateoasAction, HateoasMethod, HateoasResource } from '@affordant/contract'License
MIT
