We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ec0839 commit c39972cCopy full SHA for c39972c
1 file changed
rivetkit-typescript/packages/rivetkit/src/registry/native.ts
@@ -1139,6 +1139,9 @@ function createWriteThroughProxy<T>(
1139
const proxy = new Proxy(target, {
1140
get(innerTarget, property, receiver) {
1141
const result = Reflect.get(innerTarget, property, receiver);
1142
+ if (typeof result === "function") {
1143
+ return result.bind(innerTarget);
1144
+ }
1145
return result && typeof result === "object"
1146
? wrap(result as object)
1147
: result;
0 commit comments