Skip to content

Interface: OperationDef<Payload>

Defined in: src/testing/FakeInstance.ts:74

Type Parameters

Type ParameterDefault type
Payloadunknown

Properties

PropertyTypeDescriptionDefined in
decode?(call) => PayloadReconstruct the canonical threadiverse payload from the wire request, so consumer tests assert on what their app meant — never on routes, query params, or wire body shapes. Partial where the wire is lossy. Round-trip tested against the real client in threadiverse.src/testing/FakeInstance.ts:81
route| `POST /${string}` | `DELETE /${string}` | `GET /${string}` | `PUT /${string}`-src/testing/FakeInstance.ts:82