Closed kitten closed 4 months ago
Latest commit: 1f0b480d447f3ba76c897a08884f7eb3e9c4f99c
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Resolves #215
Summary
This prevents
readFragment(data)
from falling back toany
as a return type when no generic was passed. It also preventsreadFragment(document, data)
to evaluate toany
when an invalid document is passed. This already errored previously on thedocument
argument, but now also preventsany
from being returned.Set of changes
readFragment<DocumentType>(data)
from evaluating toany
whenDocumentType
is left outreadFragment(document, data)
from evaluating toany
, instead falling back tounknown
on invalid inputs