Skip to content

@opencraft/providence


Function: baseDeriveSingle()

baseDeriveSingle\<T>(__namedParameters): T

Defined in: lib/index.ts:207

Example function for deriving singles from an Axios response. This is based on the output from the Django REST framework, which places the object right at the root of the data response by default.

Type Parameters

T

T

Parameters

__namedParameters

DeriveSingleArgs\<T>

Returns

T