You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Thanks for providing a really nice starting point to think about how to build up an app and separate concerns. Of course, my first improvement was to have a UsecaseProviding and UsecaseDefinable protocol.
However, as soon as I begin the implementation in the Database target, for example:
public final class PostsUsecaseProvider: UsecaseProviding {
public typealias Usecase = PostsUsecase<Repository<Post>>
}
I'll get an error like: type alias cannot be declared public, because its underlying type uses an internal type because the Repository types are all internal. As they should be. That's specific logic for the database. However, I do want to have a concrete implementation of the Usecase and UsecaseProvider in the Database target.
The easiest fix would be to just publicize the Repository parts, but that feels kind of dirty. How would you fix this?
The text was updated successfully, but these errors were encountered:
Hi! Thanks for providing a really nice starting point to think about how to build up an app and separate concerns. Of course, my first improvement was to have a
UsecaseProviding
andUsecaseDefinable
protocol.However, as soon as I begin the implementation in the Database target, for example:
I'll get an error like:
type alias cannot be declared public, because its underlying type uses an internal type
because the Repository types are all internal. As they should be. That's specific logic for the database. However, I do want to have a concrete implementation of the Usecase and UsecaseProvider in the Database target.The easiest fix would be to just publicize the Repository parts, but that feels kind of dirty. How would you fix this?
The text was updated successfully, but these errors were encountered: