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

Commit

Permalink
begin implementing real real good types for request.cf (#301)
Browse files Browse the repository at this point in the history
Improve the `IncomingRequestCfProperties` type.

Previously, this type was based on our docs, which didn't include some fields. Now we've gone through the code that generates these fields and ensured that every property matches up.

Additionally, we added examples and documentation for almost everything, so it should be more clear exactly what a certain property is or isn't.
  • Loading branch information
Cass Fridkin committed Oct 20, 2022
1 parent b956031 commit 17b6d16
Show file tree
Hide file tree
Showing 2 changed files with 711 additions and 55 deletions.
9 changes: 9 additions & 0 deletions .changeset/sweet-news-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@cloudflare/workers-types": patch
---

Improve the `IncomingRequestCfProperties` type.

Previously, this type was based on our docs, which didn't include some fields. Now we've gone through the code that generates these fields and ensured that every property matches up.

Additionally, we added examples and documentation for almost everything, so it should be more clear exactly what a certain property is or isn't.
Loading

0 comments on commit 17b6d16

Please sign in to comment.