Skip to content

Commit

Permalink
Correct the function createUploadLink option uri type.
Browse files Browse the repository at this point in the history
Fixes #316 .
  • Loading branch information
jaydenseric committed Oct 24, 2023
1 parent 5c21ed6 commit 0274489
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Expand Up @@ -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.

Expand Down
3 changes: 2 additions & 1 deletion createUploadLink.mjs
Expand Up @@ -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<typeof selectURI>[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
Expand Down

0 comments on commit 0274489

Please sign in to comment.