Skip to content

Commit

Permalink
Merge pull request #130 from hishamsabur/patch-1
Browse files Browse the repository at this point in the history
Fix createFetchHeaders return type
  • Loading branch information
mdlavin authored May 13, 2024
2 parents cef15c0 + dba00f8 commit a4bddb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/typeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export type UrlLike = string | {
url?: string;
}

export function createFetchHeaders (axiosHeaders: Record<string, string> = {}): string[][] {
const headers: string[][] = [];
export function createFetchHeaders (axiosHeaders: Record<string, string> = {}): [string, string][] {
const headers: [string, string][] = [];
Object.entries(axiosHeaders).forEach(([name, value]) => {
headers.push([name, value]);
});
Expand Down

0 comments on commit a4bddb1

Please sign in to comment.