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 4e0e685 commit 495eaffCopy full SHA for 495eaff
Sources/CouchbaseLiteSwiftCoder/CBLDecoder.swift
@@ -4,6 +4,7 @@ import CouchbaseLiteSwift
4
public protocol CBLDecodable: Decodable { }
5
6
open class CBLDecoder {
7
+ public init() {}
8
public func decode<T: CBLDecodable>(_ type: T.Type, from document: Document) throws -> T {
9
let decoder = _CBLDecoder(with: document)
10
return try type.init(from: decoder)
Sources/CouchbaseLiteSwiftCoder/CBLEncoder.swift
public protocol CBLEncodable: Encodable { }
open class CBLEncoder {
public func encode<T: CBLEncodable>(_ value: T) throws -> MutableDocument {
return try encode(value, into: MutableDocument())
}
0 commit comments