We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a024d4c commit 756b03aCopy full SHA for 756b03a
lib/Macros/Sources/ObservationMacros/ObservableMacro.swift
@@ -59,10 +59,10 @@ public struct ObservableMacro {
59
static func withMutationFunction(_ observableType: TokenSyntax) -> DeclSyntax {
60
return
61
"""
62
- internal nonisolated func withMutation<Member, T>(
+ internal nonisolated func withMutation<Member, MutationResult>(
63
keyPath: KeyPath<\(observableType), Member>,
64
- _ mutation: () throws -> T
65
- ) rethrows -> T {
+ _ mutation: () throws -> MutationResult
+ ) rethrows -> MutationResult {
66
try \(raw: registrarVariableName).withMutation(of: self, keyPath: keyPath, mutation)
67
}
68
0 commit comments