JSON::TypeInference::Type - Classes of JSON types
The implementations of JSON::TypeInference::Type represent types of JSON values.
They must implement some methods that described below.
accepts($data: Any) # => Bool
Returns whether the given value is valid as the class.
name() # => Str
Returns a name of type.
signature() # => Str
Returns a signature of type.
If the type has some type parameters, the signature contains type parameters that sorted by name.
Copyright (C) aereal.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.