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:
|
trevor-scheer
left a comment
There was a problem hiding this comment.
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 fieldLevelInstrumentationwhich this got assignedto actually already inferred (roughly) the correct type because the type
got merged with a number-returning function from another case.