From 0274489f70a1850df7a3390ae9d8dfb7a49758a6 Mon Sep 17 00:00:00 2001 From: Jayden Seric Date: Tue, 24 Oct 2023 20:55:11 +1100 Subject: [PATCH] Correct the function `createUploadLink` option `uri` type. Fixes https://github.com/jaydenseric/apollo-upload-client/issues/316 . --- changelog.md | 1 + createUploadLink.mjs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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