remove optional because it's still used in too many places

This commit is contained in:
Mads Rasmussen
2023-09-12 18:24:24 +02:00
parent 2227e95a00
commit e9b9ad0714
2 changed files with 6 additions and 1 deletions

View File

@@ -50,4 +50,9 @@ export class UmbDocumentRecycleBinTreeServerDataSource implements UmbTreeDataSou
);
}
}
// TODO: remove when interface is cleaned up
async getItems(unique: Array<string>): Promise<any> {
throw new Error('Dot not use this method. Use the item source instead');
}
}

View File

@@ -5,5 +5,5 @@ export interface UmbTreeDataSource<ItemType = any, PagedItemType = UmbPagedData<
getRootItems(): Promise<DataSourceResponse<PagedItemType>>;
getChildrenOf(parentUnique: string | null): Promise<DataSourceResponse<PagedItemType>>;
// TODO: remove this when all repositories are migrated to the new items interface
getItems?(unique: Array<string>): Promise<DataSourceResponse<Array<any>>>;
getItems(unique: Array<string>): Promise<DataSourceResponse<Array<any>>>;
}