Skip to content

Commit 439cd92

Browse files
committed
refactor(effect): simplify Message key assignment
1 parent 0ac994a commit 439cd92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rivetkit-typescript/packages/effect/src/Message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ const makeProto = <
259259
}
260260
Object.setPrototypeOf(Message, Proto);
261261
Object.assign(Message, options);
262-
(Message as any).key = `@rivetkit/effect/Message/${options._tag}`;
262+
Message.key = `@rivetkit/effect/Message/${options._tag}`;
263263
return Message as any;
264264
};
265265

0 commit comments

Comments
 (0)