Skip to content

Commit

Permalink
Fix typo in declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolasstuchlik committed Jan 31, 2025
1 parent d3fbe5e commit 5f0a951
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ public protocol ComponentModel: ObservableObject {
/// The return type if this closure is `Void` intentionally. If bidirectional communication is
/// desired, either pass closure to the *coordinator* using the event, or use other
/// recommended pattern of data flow.
@MainActor var onEvent: (Event) -> Void { get }
var onEvent: @MainActor (Event) -> Void { get }
}

0 comments on commit 5f0a951

Please sign in to comment.