Skip to content

Commit

Permalink
stores options: wrap re-exported deprecated types with namespace aka …
Browse files Browse the repository at this point in the history
…module
  • Loading branch information
mpreyskurantov committed Nov 10, 2024
1 parent 921bb7b commit d249dba
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 23 deletions.
1 change: 1 addition & 0 deletions packages/devextreme/js/data/array_store.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export {
/**
* @public
* @deprecated Use ArrayStoreOptions from /common/data instead
* @namespace DevExpress.data.ArrayStore
*/
export type Options<
TItem = any,
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme/js/data/custom_store.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export {
/**
* @public
* @deprecated Use CustomStoreOptions from /common/data instead
* @namespace DevExpress.data.CustomStore
*/
export type Options<
TItem = any,
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme/js/data/local_store.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default LocalStore;
/**
* @public
* @deprecated Use LocalStoreOptions from /common/data instead
* @namespace DevExpress.data.LocalStore
*/
export type Options<
TItem = any,
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme/js/data/odata/store.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ODataStoreOptions, ODataStore } from '../../common/data';
/**
* @public
* @deprecated Use ODataStoreOptions from /common/data instead
* @namespace DevExpress.data.ODataStore
*/
export type Options<
TItem = any,
Expand Down
50 changes: 27 additions & 23 deletions packages/devextreme/ts/dx.all.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6263,19 +6263,6 @@ declare module DevExpress.data {
withCredentials?: boolean;
}
/**
* @deprecated Use ArrayStoreOptions from /common/data instead
*/
export type Options<TItem = any, TKey = any> = ArrayStoreOptions<TItem, TKey>;
/**
* @public
* @deprecated Use CustomStoreOptions from /common/data instead
*/
export type Options<TItem = any, TKey = any> = CustomStoreOptions<
TItem,
TKey
>;
/**
* @public
* @deprecated Use DataSourceOptions from /common/data instead
*/
export type Options<
Expand All @@ -6284,16 +6271,6 @@ declare module DevExpress.data {
TItem = TMappedItem,
TKey = any
> = DataSourceOptions<TStoreItem, TItem, TMappedItem, TKey>;
/**
* @public
* @deprecated Use LocalStoreOptions from /common/data instead
*/
export type Options<TItem = any, TKey = any> = LocalStoreOptions<TItem, TKey>;
/**
* @public
* @deprecated Use ODataStoreOptions from /common/data instead
*/
export type Options<TItem = any, TKey = any> = ODataStoreOptions<TItem, TKey>;
/**
* [descr:PivotGridDataSource]
*/
Expand Down Expand Up @@ -6824,6 +6801,33 @@ declare module DevExpress.data {
url?: string;
}
}
declare module DevExpress.data.ArrayStore {
/**
* @deprecated Use ArrayStoreOptions from /common/data instead
*/
export type Options<TItem = any, TKey = any> = ArrayStoreOptions<TItem, TKey>;
}
declare module DevExpress.data.CustomStore {
/**
* @deprecated Use CustomStoreOptions from /common/data instead
*/
export type Options<TItem = any, TKey = any> = CustomStoreOptions<
TItem,
TKey
>;
}
declare module DevExpress.data.LocalStore {
/**
* @deprecated Use LocalStoreOptions from /common/data instead
*/
export type Options<TItem = any, TKey = any> = LocalStoreOptions<TItem, TKey>;
}
declare module DevExpress.data.ODataStore {
/**
* @deprecated Use ODataStoreOptions from /common/data instead
*/
export type Options<TItem = any, TKey = any> = ODataStoreOptions<TItem, TKey>;
}
declare module DevExpress.data.PivotGridDataSource {
/**
* [descr:PivotGridDataSourceOptions.fields]
Expand Down

0 comments on commit d249dba

Please sign in to comment.