fix: allow callable methods to return this.state#786
Conversation
🦋 Changeset detectedLatest commit: 7e0a4cf The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Claude Code ReviewIssue: The In type IsUnknown<T> = [unknown] extends [T]
? [T] extends [unknown]
? true
: false
: false;For This allows methods returning Fix: Add an explicit check to exclude type IsUnknown<T> = 0 extends (1 & T)
? false // T is any
: [unknown] extends [T]
? [T] extends [unknown]
? true
: false
: false;The |
commit: |
|
dude you hero |
Fixes #598
Callable methods returning
this.statebroke stub types becauseunknown, the default type, didn't satisfy theSerializableReturnValuecheck in RPCMethod.Added an
IsUnknownhelper to allowunknownreturn types while still rejecting explicitly non-serializable types.