Skip to content

Commit

Permalink
Add doc comment for headers property on ApolloClient (#11508)
Browse files Browse the repository at this point in the history
* Add doc comment for `headers` property on ApolloClient

* Update src/core/ApolloClient.ts

---------

Co-authored-by: Lenz Weber-Tronic <[email protected]>
  • Loading branch information
jerelmiller and phryneas authored Jan 22, 2024
1 parent cfe6b78 commit 4464050
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/ApolloClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ export interface ApolloClientOptions<TCacheShape> {
*/
uri?: string | UriFunction;
credentials?: string;
/**
* An object representing headers to include in every HTTP request, such as `{Authorization: 'Bearer 1234'}`
*
* This value will be ignored when using the `link` option.
*/
headers?: Record<string, string>;
/**
* You can provide an {@link ApolloLink} instance to serve as Apollo Client's network layer. For more information, see [Advanced HTTP networking](https://www.apollographql.com/docs/react/networking/advanced-http-networking/).
Expand Down

0 comments on commit 4464050

Please sign in to comment.