Skip to content
Commit Detail

Commit 328a23e

Author
H.Alper Tuna <halpertuna@gmail.com> 2024-10-14 15:53:21 +0300
Parents
0166594
Tree
7fe9034
Fix returning interface types from rpc methods (#2040)

* Fix returning interface types from rpc methods

Fixes #2003

* Better rpc return type check

* remove Function check from Serializable object type

* use Serializable generic in the recursive uses of Serializable

+ format file with prettier

* Update tests

* Further fixes for the Serializable type

- Fixed Serializable to properly resolve structured composite types.
- Fixed missing generic types in Serializable usages.
- Fixed issue where interfaces were not being stubified.

* Extended rpc type tests to include Serializable types and interfaces.

---------

Co-authored-by: Rahul Sethi <5822355+RamIdeas@users.noreply.github.com>
Co-authored-by: Samuel Macleod <smacleod@cloudflare.com>

Files changed

2 files changed~2 modified