Skip to content

Commit 71a6c07

Browse files
authored
Update type name in Observable macro (#64067)
Switch macro-generated code to `TrackedProperties`.
1 parent d8f552f commit 71a6c07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Macros/Sources/ObservationMacros/ObservableMacro.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public struct ObservableMacro: MemberMacro, MemberAttributeMacro, ConformanceMac
5353

5454
let transactions: DeclSyntax =
5555
"""
56-
public nonisolated func transactions<Delivery>(for keyPaths: KeyPaths<\(parentName)>, isolation: Delivery) -> ObservedTransactions<\(parentName), Delivery> where Delivery: Actor {
57-
_registrar.transactions(for: keyPaths, isolation: isolation)
56+
public nonisolated func transactions<Delivery>(for properties: TrackedProperties<\(parentName)>, isolation: Delivery) -> ObservedTransactions<\(parentName), Delivery> where Delivery: Actor {
57+
_registrar.transactions(for: properties, isolation: isolation)
5858
}
5959
"""
6060

0 commit comments

Comments
 (0)