Use AxiosRequestHeaders type

api-accept
Alex Gleason 2022-05-09 13:30:13 -05:00
rodzic 341ad17d26
commit 3c6e1d271c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -5,7 +5,7 @@
*/
'use strict';
import axios, { AxiosInstance, AxiosResponse } from 'axios';
import axios, { AxiosInstance, AxiosResponse, AxiosRequestHeaders } from 'axios';
import LinkHeader from 'http-link-header';
import { createSelector } from 'reselect';
@ -50,7 +50,7 @@ const getAuthBaseURL = createSelector([
/** Base client for HTTP requests. */
export const baseClient = (accessToken: string, baseURL: string = ''): AxiosInstance => {
const headers: Record<string, string> = {
const headers: AxiosRequestHeaders = {
accept: 'application/json',
};