Skip to content

Commit

Permalink
Merge pull request #7 from num42/release/1.0.2
Browse files Browse the repository at this point in the history
Make SetValue more Generic by using Self instead of State
  • Loading branch information
Lutzifer authored Jan 23, 2024
2 parents c3dcb20 + cc85990 commit 5c7b55d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/ChangeableMacros/ChangeableMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public struct ChangeableFunctionMacro: MemberMacro {
.joined(separator: ",\n ")

let applyDeclaration: DeclSyntax = """
public func apply(action: SetValue<State, some Any>) -> Self {
public func apply(action: SetValue<Self, some Any>) -> Self {
let path = action.path
let value = action.value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ b != nil
)
}

public func apply(action: SetValue<State, some Any>) -> Self {
public func apply(action: SetValue<Self, some Any>) -> Self {
let path = action.path
let value = action.value

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ b != nil
)
}

public func apply(action: SetValue<State, some Any>) -> Self {
public func apply(action: SetValue<Self, some Any>) -> Self {
let path = action.path
let value = action.value

Expand Down

0 comments on commit 5c7b55d

Please sign in to comment.