apollo-server icon indicating copy to clipboard operation
apollo-server copied to clipboard

Update custom-scalars.mdx

Open mx-bernhard opened this issue 1 year ago • 3 comments

value should be of type unknown instead of number with [email protected]:

Type '(value: number) => number' is not assignable to type 'GraphQLScalarValueParser<number>'.
  Types of parameters 'value' and 'inputValue' are incompatible.
    Type 'unknown' is not assignable to type 'number'.ts(2322)
definition.d.ts(365, 3): The expected type comes from property 'parseValue' which is declared here on type 'Readonly<GraphQLScalarTypeConfig<number, number>>'

mx-bernhard avatar May 18 '24 08:05 mx-bernhard

@mx-bernhard: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

apollo-cla avatar May 18 '24 08:05 apollo-cla

Deploy request for apollo-server-docs pending review.

Visit the deploys page to approve it

Name Link
Latest commit f9cd7106fbb4fe243ebb80ba30b131da17a5456a

netlify[bot] avatar May 18 '24 08:05 netlify[bot]

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.

codesandbox-ci[bot] avatar May 18 '24 08:05 codesandbox-ci[bot]