ResourceTransform is the callback signature for the transforms
resource option. A transform is passed the same set of inputs provided to
the Resource constructor, and can optionally return back alternate
values for the props and/or opts prior to the resource actually being
created. The effect will be as though those props and opts were passed in
place of the original call to the Resource constructor. If the
transform returns undefined, this indicates that the resource will not be
transformed.
ResourceTransform is the callback signature for the
transforms
resource option. A transform is passed the same set of inputs provided to the Resource constructor, and can optionally return back alternate values for theprops
and/oropts
prior to the resource actually being created. The effect will be as though those props and opts were passed in place of the original call to the Resource constructor. If the transform returnsundefined
, this indicates that the resource will not be transformed.