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.
1 parent 5bc7dbb commit 940896aCopy full SHA for 940896a
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