DataLireCoder swift package
This commit is contained in:
6
Sources/DLCEncoder/Protocols/DateEncoder.swift
Normal file
6
Sources/DLCEncoder/Protocols/DateEncoder.swift
Normal file
@@ -0,0 +1,6 @@
|
||||
import Foundation
|
||||
|
||||
public protocol DateEncoder {
|
||||
func encode(_ date: Date, to encoder: any ValueEncoder) throws
|
||||
func encode(_ date: Date, for key: any CodingKey, to encoder: any RowEncoder) throws
|
||||
}
|
||||
Reference in New Issue
Block a user