DataLireCoder swift package
This commit is contained in:
parent
2cca986016
commit
5aec6ea578
60 changed files with 7144 additions and 0 deletions
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue