sig/strong_json.rbi in strong_json-1.0.1 vs sig/strong_json.rbi in strong_json-1.1.0
- old
+ new
@@ -47,9 +47,11 @@
def array?: <'x> (_Schema<'x>) -> Type::Optional<::Array<'x>>
def literal: <'x> ('x) -> Type::Literal<'x>
def literal?: <'x> ('x) -> Type::Optional<'x>
def enum: <'x> (*_Schema<any>, ?detector: Type::detector?) -> Type::Enum<'x>
def enum?: <'x> (*_Schema<any>, ?detector: Type::detector?) -> Type::Optional<'x>
+ def (incompatible) hash: <'x> (_Schema<'x>) -> Type::Hash<'x>
+ def hash?: <'x> (_Schema<'x>) -> Type::Optional<Hash<Symbol, 'x>>
end
class StrongJSON::ErrorReporter
attr_reader path: Type::ErrorPath
@string: String