Created
June 15, 2020 07:16
-
-
Save aryzae/3a8d7673baaf4923b9e96606c82d8a9a to your computer and use it in GitHub Desktop.
Associatedtype name change Response to DTO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import APIKit | |
struct HogeRequest: SampleRequest { | |
typealias DTO = ResponseDTO | |
} | |
protocol SampleRequest: Request { | |
associatedtype Response = DTO | |
associatedtype DTO | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment