Closed kitten closed 3 months ago
Latest commit: 7022d9fd6f7e23f3ef02ccc3d5cbbabaa95e60dc
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
Related #242
Summary
TypeScript is able to trigger error 2353 (“object literals may only specify known properties”) in certain scenarios, when it's obvious to it whether an object literal type has a known set of properties that are accepted.
This fix makes sure that
graphql.scalar()
triggers this check correctly instead of expanding thevalue
argument type.Set of changes
value
argument ofgraphql.scalar
narrow