We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 815f639 + 940896a commit 9454327Copy full SHA for 9454327
1 file changed
Sources/Typesense/Shared/Coders.swift
@@ -5,6 +5,16 @@ public let decoder = JSONDecoder()
5
6
public enum StringQuantum: Codable {
7
8
+ public var arrStr : [String]? {
9
+ guard case .arrOfStrings(let arrOfStrings) = self else { return nil }
10
+ return arrOfStrings
11
+ }
12
+
13
+ public var arrArrStr : [[String]]? {
14
+ guard case .arrOfArrOfStrings(let arrOfArrOfStrings) = self else { return nil }
15
+ return arrOfArrOfStrings
16
17
18
case arrOfStrings([String]), arrOfArrOfStrings([[String]])
19
20
public init(from decoder: Decoder) throws {
0 commit comments