Flight-School / AnyCodable

Type-erased wrappers for Encodable, Decodable, and Codable values
https://flight.school/books/codable
MIT License
1.29k stars 133 forks source link

Use more strict types #26

Closed nh7a closed 4 years ago

nh7a commented 5 years ago

As a whole, I don't think there's anything wrong in practice but this way makes a bit more sense.

I just wanted to use AnyDecodable and copied AnyDecodable.swift but it didn't work. Hence this PR.

mattt commented 4 years ago

Apologies for the late response, @nh7a. I agree that this is the most reasonable thing to do. Thanks for submitting this patch!