Skip to content

Commit 1aad8aa

Browse files
committed
fix: allow methods to be overridden
1 parent 1a53481 commit 1aad8aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,16 @@ export function SafeDurableObjectBuilder<
174174
Object.fromEntries(
175175
Object.entries(router).map(([key, value]) => [
176176
key,
177-
{ value, enumerable: true },
177+
{ value, enumerable: true, writable: true, configurable: true },
178178
])
179179
)
180180
);
181181

182182
Object.defineProperty(BaseClassWithSafeRpc.prototype, "_def", {
183183
value: router,
184184
enumerable: true,
185+
writable: true,
186+
configurable: true,
185187
});
186188

187189
return BaseClassWithSafeRpc as AnyDurableClass<

0 commit comments

Comments
 (0)