Fixed the naming of the FileSystemIdIdentifiable protocol for the Browse module as FileSystemItemIdentifiable.
This commit is contained in:
parent
37490ba3d7
commit
98db94d180
@ -38,4 +38,4 @@ struct Document {
|
||||
|
||||
// MARK: - FileSystemIdIdentifiable
|
||||
|
||||
extension Document: FileSystemIdIdentifiable {}
|
||||
extension Document: FileSystemItemIdentifiable {}
|
||||
|
@ -27,7 +27,7 @@ public struct Folder {
|
||||
|
||||
// MARK: - FileSystemIdIdentifiable
|
||||
|
||||
extension Folder: FileSystemIdIdentifiable {}
|
||||
extension Folder: FileSystemItemIdentifiable {}
|
||||
|
||||
// MARK: - Equatable
|
||||
|
||||
|
@ -13,4 +13,4 @@ protocol FileSystemItem {
|
||||
|
||||
// MARK: - Type aliases
|
||||
|
||||
typealias FileSystemIdIdentifiable = FileSystemItem & Identifiable
|
||||
typealias FileSystemItemIdentifiable = FileSystemItem & Identifiable & Hashable
|
||||
|
@ -22,7 +22,7 @@ struct GetItemsUseCase {
|
||||
id: String,
|
||||
username: String,
|
||||
password: String
|
||||
) async throws -> [any FileSystemIdIdentifiable] {
|
||||
) async throws -> [any FileSystemItemIdentifiable] {
|
||||
let items = try await apiService.getItems(
|
||||
id: id,
|
||||
credentials: .init(
|
||||
@ -32,7 +32,7 @@ struct GetItemsUseCase {
|
||||
)
|
||||
|
||||
return items
|
||||
.compactMap { item -> any FileSystemIdIdentifiable in
|
||||
.compactMap { item -> any FileSystemItemIdentifiable in
|
||||
if item.isDirectory {
|
||||
return Folder(
|
||||
id: item.id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user