github arktypeio/arktype arktype@2.0.0-dev.23

latest releases: @arktype/util@0.44.1, @ark/util@0.44.1, @ark/type@2.1.6...
10 months ago

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({})

Don't miss a new arktype release

NewReleases is sending notifications on new releases.