Skip to main content
Version: v0.0.3

Function: dispositionOf()

dispositionOf(kind): ResponseDisposition

Map a response body kind to its disposition. The mapping is total and one-directional: an ErrorBody is always "error".

Parameters

kind

ResponseKind

The response body kind.

Returns

ResponseDisposition

The disposition.

Example

dispositionOf("Error"); // "error"