Optional

extension Optional: HADecodeTransformable where Wrapped: HADecodeTransformable

Available where Wrapped: HADecodeTransformable

  • Transforms any transformable item into an Optional version

    Throws

    If the underlying decode throws

    Declaration

    Swift

    public static func decode(unknown value: Any) throws -> `Self`?

    Parameters

    value

    The value to be converted

    Return Value

    An Optional-wrapped transformed value