Skip to content

Commit

Permalink
C3: Fix issue with hono Bindings type (#5687)
Browse files Browse the repository at this point in the history
* C3: Fix issue with hono Bindings type

* Remove failing e2e test case
  • Loading branch information
jculvey committed Apr 24, 2024
1 parent fc03c10 commit 906c39a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shaggy-pugs-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-cloudflare": patch
---

fix: Fixes an issue with the `Bindings` type genereated by C3 being too permissive.
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
type Bindings = Record<string, unknown> & CloudflareBindings
type Bindings = {
[key in keyof CloudflareBindings]: CloudflareBindings[key]
}

0 comments on commit 906c39a

Please sign in to comment.