This commit is contained in:
Adria Navarro 2025-01-02 13:36:38 +01:00
parent 1899af9190
commit c7255362b0
1 changed files with 4 additions and 5 deletions

View File

@ -9,7 +9,6 @@ import {
SortOrder, SortOrder,
SortType, SortType,
TableSchema, TableSchema,
UIDatasource,
UIFetchAPI, UIFetchAPI,
UIRow, UIRow,
UISearchFilter, UISearchFilter,
@ -46,8 +45,8 @@ interface DataFetchDerivedStore<T> extends DataFetchStore<T> {
* For other types of datasource, this class is overridden and extended. * For other types of datasource, this class is overridden and extended.
*/ */
export default abstract class DataFetch< export default abstract class DataFetch<
TDatasource extends UIDatasource | null, TDatasource extends {},
TDefinition extends { primaryDisplay?: string } TDefinition extends {}
> { > {
API: UIFetchAPI API: UIFetchAPI
features: { features: {
@ -337,7 +336,7 @@ export default abstract class DataFetch<
* @return {object} the definition * @return {object} the definition
*/ */
abstract getDefinition( abstract getDefinition(
datasource: UIDatasource | null datasource: TDatasource | null
): Promise<TDefinition | null> ): Promise<TDefinition | null>
/** /**
@ -347,7 +346,7 @@ export default abstract class DataFetch<
* @return {object} the schema * @return {object} the schema
*/ */
abstract getSchema( abstract getSchema(
datasource: UIDatasource | null, datasource: TDatasource | null,
definition: TDefinition | null definition: TDefinition | null
): any ): any