The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

JSON::TypeInference::Type::Maybe - maybe type

DESCRIPTION

JSON::TypeInference::Type::Maybe represents a possibility whether a value type exists or not.

The type consists of a value type and JSON::TypeInference::Type::Null.

It is a container type, and has a type parameter.

METHODS

looks_like_maybe($candidate_types: ArrayRef[JSON::TypeInference::Type]); # => Bool

Returns whether the given types conform to JSON::TypeInference::Type::Maybe structure.

AUTHOR

aereal <aereal@aereal.org>

SEE ALSO

JSON::TypeInference::Type::Null