Refactoring

This commit is contained in:
Ali
2021-08-03 12:23:13 +02:00
parent 1a0dc56953
commit 7e6eb2b3bd
46 changed files with 702 additions and 470 deletions

View File

@@ -10,7 +10,10 @@ final public class AdaptedPostboxDecoder {
case dataArray
}
func decode<T>(_ type: T.Type, from data: Data) throws -> T where T : Decodable {
public init() {
}
public func decode<T>(_ type: T.Type, from data: Data) throws -> T where T : Decodable {
return try self.decode(type, from: data, contentType: .object)
}