Skip to content

feat: introduce types for realtimekit bindings - #8823

Merged
git-bruh merged 3 commits into
cloudflare:mainfrom
thisisamank:feat/add-realtimekit-types
Nov 23, 2026
Merged

git-bruh merged 3 commits into
cloudflare:mainfrom
thisisamank:feat/add-realtimekit-types

Conversation

@thisisamank

Copy link
Copy Markdown
Contributor

this PR cherry-picks commits from: #8032

@thisisamank
thisisamank requested review from a team as code owners November 23, 2026 09:37
@clanky-the-clanker

Copy link
Copy Markdown

This pull request was not reviewed automatically because its author does not have write access to this repository. A maintainer with write access can start a review by commenting clanky review (or clanker review or @clanky-the-clanker review), optionally followed by instructions (e.g. clanky review focus on the retry logic).

@thisisamank

Copy link
Copy Markdown
Contributor Author

@NuroDev can you please review this PR since you had already reviewed #8032

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.81%. Comparing base (1adff5d) to head (e91c779).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8823      +/-   ##
==========================================
- Coverage   68.01%   67.81%   -0.21%     
==========================================
  Files         846      847       +1     
  Lines      219198   215027    -4171     
  Branches    32587    32588       +1     
==========================================
- Hits       149081   145812    -3269     
+ Misses      50876    49973     -903     
- Partials    19241    19242       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@petebacondarwin petebacondarwin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels strange to be using snake_case as properties in TypeScript. I appreciate that you are trying to match the format over the wire. But one could argue that the responses could be snake cased to by the time they arrive in TypeScript as return values from a binding? Or that they are not related since the request side and response side are different data sources?

I am not going to die on this hill since there is already a precedent in other bindings for this sort of thing. But it definitely goes against the expected conventions for TypeScript users.

@thisisamank

thisisamank commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Hey @petebacondarwin, thanks for your review. I agree that using snake_case would feel little weird for typescript customers but the existing customer base is already using it in their codebase, so that customers migrating away
from REST APIs to Bindings do not have to change major portion of their integration.

Or that they are not related since the request side and response side are different data sources?

No the request and response are using the same convention and the data source is also the same.

@petebacondarwin petebacondarwin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. Off we go then!

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@thisisamank

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Nov 23, 2026
@git-bruh
git-bruh enabled auto-merge November 23, 2026 17:42
@git-bruh
git-bruh disabled auto-merge November 23, 2026 17:43
@git-bruh
git-bruh enabled auto-merge (squash) November 23, 2026 17:44
@git-bruh
git-bruh merged commit 38ecdbc into cloudflare:main Nov 23, 2026
18 of 20 checks passed
@thisisamank
thisisamank deleted the feat/add-realtimekit-types branch November 23, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants