Skip to content

Commit

Permalink
Add optional cf property to RequestInit
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnwalraven committed Jul 16, 2018
1 parent a59167d commit 8a58892
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/apollo-server-env/src/fetch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ export interface RequestInit {
referrer?: string;
referrerPolicy?: ReferrerPolicy;
integrity?: string;
// Cloudflare Workers accept a `cf` property to control Cloudflare features
// See https://developers.cloudflare.com/workers/reference/cloudflare-features/
cf?: {
[key: string]: any;
};
}

export type RequestMode = 'navigate' | 'same-origin' | 'no-cors' | 'cors';
Expand Down

0 comments on commit 8a58892

Please sign in to comment.