Add an AnyType
type that allows a Type instance from any Scope
Avoid an overly verbose default error on a missing key for a complex object
const MyType = type({
foo: {
/** Some very complex object */
}
})
// previously threw with a message like:
// sections must be /* Some very complex description */ (was missing)
// now throws with a message like:
// sections must be an object (was missing)
MyType.assert({})