Skip to content

Commit 495eaff

Browse files
authored
Add public init() to CBLDecoder/CBLEncoder
1 parent 4e0e685 commit 495eaff

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Sources/CouchbaseLiteSwiftCoder/CBLDecoder.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import CouchbaseLiteSwift
44
public protocol CBLDecodable: Decodable { }
55

66
open class CBLDecoder {
7+
public init() {}
78
public func decode<T: CBLDecodable>(_ type: T.Type, from document: Document) throws -> T {
89
let decoder = _CBLDecoder(with: document)
910
return try type.init(from: decoder)

Sources/CouchbaseLiteSwiftCoder/CBLEncoder.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import CouchbaseLiteSwift
44
public protocol CBLEncodable: Encodable { }
55

66
open class CBLEncoder {
7+
public init() {}
78
public func encode<T: CBLEncodable>(_ value: T) throws -> MutableDocument {
89
return try encode(value, into: MutableDocument())
910
}

0 commit comments

Comments
 (0)