Skip to content

Commit 0fac9d9

Browse files
josecolellaclaude
andcommitted
fix: make _ToProc interface more specific
Narrow the handler interface signature from `(untyped) -> untyped` to `(Hash[Symbol, untyped]) -> void` since event handlers always receive event details hashes and their return values are unused. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Jose Colella <jose.colella@gusto.com>
1 parent 41099a4 commit 0fac9d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sig/open_feature/sdk/event_dispatcher.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module OpenFeature
1818
end
1919

2020
interface _ToProc
21-
def call: (untyped) -> untyped
21+
def call: (Hash[Symbol, untyped]) -> void
2222
end
2323
end
2424
end

0 commit comments

Comments
 (0)