diff --git a/changelog.md b/changelog.md index 1a436ec..756e7ee 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,7 @@ ### Patch +- Corrected the function `createUploadLink` option `uri` type, fixing [#316](https://github.com/jaydenseric/apollo-upload-client/issues/316). - Prefixed unused parameters with `_`, fixing [#317](https://github.com/jaydenseric/apollo-upload-client/issues/317). - Fixed a typo in the changelog entry for v18.0.0. diff --git a/createUploadLink.mjs b/createUploadLink.mjs index 74ac5ca..f0c3d3a 100644 --- a/createUploadLink.mjs +++ b/createUploadLink.mjs @@ -34,7 +34,8 @@ import isExtractableFile from "./isExtractableFile.mjs"; * [`createHttpLink` options](https://www.apollographql.com/docs/react/api/link/apollo-link-http/#httplink-constructor-options). * @see [GraphQL multipart request spec](https://github.com/jaydenseric/graphql-multipart-request-spec). * @param {object} options Options. - * @param {string} [options.uri] GraphQL endpoint URI. Defaults to `"/graphql"`. + * @param {Parameters[1]} [options.uri] GraphQL endpoint URI. + * Defaults to `"/graphql"`. * @param {boolean} [options.useGETForQueries] Should GET be used to fetch * queries, if there are no files to upload. * @param {ExtractableFileMatcher} [options.isExtractableFile] Matches