-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage reporting: fix TS declaration of fieldLevelInstrumentation #6763
Conversation
|
✅ Deploy Preview for apollo-server-docs canceled.
|
Note that the `const fieldLevelInstrumentation` which this got assigned to actually already inferred (roughly) the correct type because the type got merged with a number-returning function from another case.
8642ad0
to
bd9e3f9
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit bd9e3f9:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should fieldLevelInstrumentation
also be assignable to a boolean value? Not a blocker - same functionality can be achieved with 0 and 1 as it currently exists.
@trevor-scheer I think my reasoning here was: Arguably we should have only supported a function here, and exported a function like Anyway this PR is just about fixing the types to match the implementation, not about changing the implementation. |
Usage reporting: fix TS declaration of fieldLevelInstrumentation Note that the `const fieldLevelInstrumentation` which this got assigned to actually already inferred (roughly) the correct type because the type got merged with a number-returning function from another case.
Usage reporting: fix TS declaration of fieldLevelInstrumentation Note that the `const fieldLevelInstrumentation` which this got assigned to actually already inferred (roughly) the correct type because the type got merged with a number-returning function from another case.
Note that the
const fieldLevelInstrumentation
which this got assignedto actually already inferred (roughly) the correct type because the type
got merged with a number-returning function from another case.