Skip to content

Commit

Permalink
feat: expose the Headers type so it can be used in the URL middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum authored and nodkz committed Dec 30, 2019
1 parent e872ee4 commit 4cc470b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ declare class RelayResponse {
}
export { RelayResponse as RelayNetworkLayerResponse };

export type Headers = { [name: string]: string };
export interface FetchOpts {
url?: string;
method: 'POST' | 'GET';
headers: { [name: string]: string };
headers: Headers;
body: string | FormData;
credentials?: 'same-origin' | 'include' | 'omit';
mode?: 'cors' | 'websocket' | 'navigate' | 'no-cors' | 'same-origin';
Expand Down

0 comments on commit 4cc470b

Please sign in to comment.