@@ -20,7 +20,7 @@ export interface EndpointGetOptions<TKeys, TResult, TKeysBind = TKeys>
2020 * A function to create the url
2121 */
2222 url : ( keys : TKeysBind ) => string ;
23- headers ?: { [ keys : string ] : ( keys : TKeysBind ) => string } ;
23+ headers ?: { [ keys : string ] : string | ( ( keys : TKeysBind ) => string ) } ;
2424 /**
2525 * Wether to cache the request - true by default
2626 */
@@ -128,7 +128,7 @@ export interface EndpointPostOptions<TKeys, TBody, TResult, TKeysBind = TKeys>
128128 * A function to create the url
129129 */
130130 url : ( keys : TKeysBind ) => string ;
131- headers ?: { [ keys : string ] : ( keys : TKeysBind ) => string } ;
131+ headers ?: { [ keys : string ] : string | ( ( keys : TKeysBind ) => string ) } ;
132132 /**
133133 * A custom loader
134134 */
@@ -184,7 +184,7 @@ export interface EndpointPutOptions<TKeys, TBody, TResult, TKeysBind = TKeys>
184184 * A function to create the url
185185 */
186186 url : ( keys : TKeysBind ) => string ;
187- headers ?: { [ keys : string ] : ( keys : TKeysBind ) => string } ;
187+ headers ?: { [ keys : string ] : string | ( ( keys : TKeysBind ) => string ) } ;
188188 /**
189189 * A custom loader
190190 */
@@ -240,7 +240,7 @@ export interface EndpointDeleteOptions<TKeys, TResult, TKeysBind = TKeys>
240240 * A function to create the url
241241 */
242242 url : ( keys : TKeysBind ) => string ;
243- headers ?: { [ keys : string ] : ( keys : TKeysBind ) => string } ;
243+ headers ?: { [ keys : string ] : string | ( ( keys : TKeysBind ) => string ) } ;
244244 /**
245245 * A custom loader
246246 */
0 commit comments