Small refactoring
This commit is contained in:
parent
6a3528c748
commit
a3c5ff8c73
|
@ -8,10 +8,6 @@ import Foundation
|
|||
/// The values a `PathExplorer` can take
|
||||
public enum ExplorerValue {
|
||||
|
||||
public typealias ArrayValue = [ExplorerValue]
|
||||
public typealias DictionaryValue = [String: ExplorerValue]
|
||||
typealias SlicePath = Slice<Path>
|
||||
|
||||
// single
|
||||
case int(Int)
|
||||
case double(Double)
|
||||
|
@ -25,6 +21,12 @@ public enum ExplorerValue {
|
|||
case dictionary(DictionaryValue)
|
||||
}
|
||||
|
||||
extension ExplorerValue {
|
||||
public typealias ArrayValue = [ExplorerValue]
|
||||
public typealias DictionaryValue = [String: ExplorerValue]
|
||||
typealias SlicePath = Slice<Path>
|
||||
}
|
||||
|
||||
extension ExplorerValue {
|
||||
|
||||
public var isSingle: Bool { !isGroup }
|
||||
|
|
Loading…
Reference in New Issue