Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
adds support for isEUCountry (#245)
Browse files Browse the repository at this point in the history
* adds support for isEUCountry

Docs: https://developers.cloudflare.com/workers/runtime-apis/request/#incomingrequestcfproperties

* fix isEUCountry type to string?

Co-authored-by: Adam Skoufis <askoufis@users.noreply.github.com>

* add changeset

* make the changeset be a patch since it's a bugfix

Co-authored-by: Adam Skoufis <askoufis@users.noreply.github.com>
Co-authored-by: Sunil Pai <threepointone@gmail.com>
  • Loading branch information
3 people committed Jul 9, 2022
1 parent f661c28 commit bf5d870
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/2022-06-01.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudflare/workers-types": patch
---

Added support for `isEUCountry` property on `IncomingRequestCfProperties`
1 change: 1 addition & 0 deletions overrides/cf.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ interface IncomingRequestCfProperties {
*/
country: string;
httpProtocol: string;
isEUCountry?: string;
latitude?: string;
longitude?: string;
/**
Expand Down

0 comments on commit bf5d870

Please sign in to comment.