We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1042554 commit 9f1bf4aCopy full SHA for 9f1bf4a
Sources/GraphQL/Map/Map.swift
@@ -204,6 +204,27 @@ extension Map {
204
}
205
206
207
+// MARK: is<Type>
208
+
209
+extension Map {
210
+ public var typeDescription: String {
211
+ switch self {
212
+ case .null:
213
+ return "null"
214
+ case .bool:
215
+ return "bool"
216
+ case .number:
217
+ return "number"
218
+ case .string:
219
+ return "string"
220
+ case .array:
221
+ return "array"
222
+ case .dictionary:
223
+ return "dictionary"
224
+ }
225
226
+}
227
228
// MARK: as<type>?
229
230
extension Map {
0 commit comments