CHGenerator/Sources/Generator/Extensions/Int+Extensions.swift
2022-12-01 14:50:26 +01:00

14 lines
229 B
Swift

import Foundation
extension Int: StringProperty {
static var castFailureReason: String {
"The string was not a valid integer"
}
}
extension Int: DefaultValueProvider {
static var defaultValue: Int { 0 }
}