gatsby
Version:
Blazing fast modern site generator for React
8 lines (7 loc) • 406 B
TypeScript
import { IGatsbyState, ISetDomainRequestHeaders } from "../types";
/**
* Takes in a domain and headers for that domain, from the setRequestHeaders action, and stores them in a Map to be accessed when making requests.
*/
export declare const setRequestHeadersReducer: (state: Map<string, {
[header: string]: string;
}> | undefined, action: ISetDomainRequestHeaders) => IGatsbyState["requestHeaders"];