mirror of
https://github.com/github/semantic.git
synced 2024-11-25 21:43:07 +03:00
Patch has a JSON property when A is CustomJSONConvertible.
This commit is contained in:
parent
4512b6f2e7
commit
5fc16e86f8
@ -109,6 +109,13 @@ extension Patch {
|
||||
}
|
||||
|
||||
|
||||
extension Patch where A: CustomJSONConvertible {
|
||||
public var JSON: Doubt.JSON {
|
||||
return self.JSON { $0.JSON }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// A hack to enable constrained extensions on `Free<A, Patch<A>>`.
|
||||
public protocol PatchConvertible {
|
||||
typealias Info
|
||||
|
Loading…
Reference in New Issue
Block a user