Skip to content

Commit 9033afd

Browse files
Maxence MottardThomasDutartre
authored andcommitted
Add "inheritedTypes" parameter to the macro
1 parent 5ee55d3 commit 9033afd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/Spyable/Spyable.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,11 @@
134134
/// - The generated spy class name is suffixed with `Spy` (e.g., `ServiceProtocolSpy`).
135135
///
136136
@attached(peer, names: suffixed(Spy))
137-
public macro Spyable(behindPreprocessorFlag: String? = nil, accessLevel: SpyAccessLevel? = nil) =
137+
public macro Spyable(
138+
behindPreprocessorFlag: String? = nil,
139+
accessLevel: SpyAccessLevel? = nil,
140+
inheritedTypes: String? = nil
141+
) =
138142
#externalMacro(
139143
module: "SpyableMacro",
140144
type: "SpyableMacro"

0 commit comments

Comments
 (0)