Skip to content

Commit

Permalink
Fix custom headers type def (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
jb-0 authored Apr 27, 2021
1 parent bf6a4c0 commit c058c76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ interface BackendOptions {
*/
queryStringParams?: { [key: string]: string };

customHeaders?: { [key: string]: string };
/**
* allows an object containing custom headers or a function that when called returns
* an object of custom headers
*/
customHeaders?: { [key: string]: string } | (() => { [key: string]: string });

/**
* can be used to reload resources in a specific
Expand Down

0 comments on commit c058c76

Please sign in to comment.