From 317a97231479558a9b3ec184005584dcda55c3f5 Mon Sep 17 00:00:00 2001 From: maxswa Date: Sun, 28 May 2023 13:41:53 -0400 Subject: [PATCH] Add optional axios configs to `GetStatsOptions` --- src/types.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/types.ts b/src/types.ts index e13c387..8785af2 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,3 +1,5 @@ +import { AxiosRequestConfig } from 'axios'; + export type Gamemode = | 'main' | 'ironman' @@ -183,4 +185,13 @@ export interface GetStatsOptions { * @defaultvalue `true` */ shouldGetFormattedRsn?: boolean; + /** + * Map of configs for each requests that can take place in the `getStats` function. + */ + axiosConfigs?: Partial> & { + /** + * The axios request config object to use for the RSN format request. + */ + rsn?: AxiosRequestConfig; + }; }