default to any

This commit is contained in:
Mads Rasmussen
2023-03-24 15:00:17 +01:00
parent eeef6fcf8c
commit af19b30feb

View File

@@ -1,6 +1,6 @@
import type { DataSourceResponse } from '@umbraco-cms/backoffice/repository';
export interface UmbTreeDataSource<PagedItemsType, ItemsType> {
export interface UmbTreeDataSource<PagedItemsType = any, ItemsType = any> {
getRootItems(): Promise<DataSourceResponse<PagedItemsType>>;
getChildrenOf(parentUnique: string): Promise<DataSourceResponse<PagedItemsType>>;
getItems(unique: Array<string>): Promise<DataSourceResponse<Array<ItemsType>>>;