UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

78 lines (73 loc) 2.78 kB
/** * DevExtreme (data/data_source.d.ts) * Version: 24.2.6 * Build date: Mon Mar 17 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { DataSource, DataSourceOptions, FilterDescriptor, GroupDescriptor, LangParams, SearchOperation, SelectDescriptor, SortDescriptor, Store, StoreOptions, } from '../common/data'; export { DataSourceOptions, } from '../common/data'; /** * @deprecated Attention! This type is for internal purposes only. If you used it previously, please submit a ticket to our {@link https://supportcenter.devexpress.com/ticket/create Support Center}. We will check if there is an alternative solution. */ export type Options< TStoreItem = any, TMappedItem = TStoreItem, TItem = TMappedItem, TKey = any, > = DataSourceOptions<TStoreItem, TItem, TMappedItem, TKey>; /** * * @deprecated Attention! This type is for internal purposes only. If you used it previously, please submit a ticket to our {@link https://supportcenter.devexpress.com/ticket/create Support Center}. We will check if there is an alternative solution. */ export type DataSourceLike<TItem, TKey = any> = string | Array<TItem> | Store<TItem, TKey> | DataSourceOptionsStub<any, any, TItem> | DataSource<TItem, TKey>; /** * @deprecated Attention! This type is for internal purposes only. If you used it previously, please submit a ticket to our {@link https://supportcenter.devexpress.com/ticket/create Support Center}. We will check if there is an alternative solution. */ export interface DataSourceOptionsStub< TStoreItem = any, TMappedItem = TStoreItem, TItem = TMappedItem, > { customQueryParams?: any; expand?: Array<string> | string; filter?: FilterDescriptor | Array<FilterDescriptor>; group?: GroupDescriptor<TItem> | Array<GroupDescriptor<TItem>>; langParams?: LangParams; map?: ((dataItem: TStoreItem) => TMappedItem); onChanged?: ((e: { readonly changes?: Array<TMappedItem> }) => void); onLoadError?: ((error: { readonly message?: string }) => void); onLoadingChanged?: ((isLoading: boolean) => void); pageSize?: number; paginate?: boolean; postProcess?: ((data: Array<TMappedItem>) => Array<TItem>); pushAggregationTimeout?: number; requireTotalCount?: boolean; reshapeOnPush?: boolean; searchExpr?: string | Function | Array<string | Function>; searchOperation?: SearchOperation; searchValue?: any; select?: SelectDescriptor<TItem>; sort?: SortDescriptor<TItem> | Array<SortDescriptor<TItem>>; store?: Array<TStoreItem> | Store<TStoreItem, any> | StoreOptions<TStoreItem, any>; } export default DataSource;