From 4bfd8985959b8d1c239e9e1e066ec5587efbf30a Mon Sep 17 00:00:00 2001 From: Mikhail Preyskurantov <5574159+mpreyskurantov@users.noreply.github.com> Date: Sun, 10 Nov 2024 19:53:02 +0200 Subject: [PATCH] file management providers options: wrap re-exported deprecated types with namespace aka module --- .../js/file_management/custom_provider.d.ts | 1 + .../js/file_management/object_provider.d.ts | 1 + .../js/file_management/remote_provider.d.ts | 1 + packages/devextreme/ts/dx.all.d.ts | 32 +++++++++++-------- 4 files changed, 21 insertions(+), 14 deletions(-) diff --git a/packages/devextreme/js/file_management/custom_provider.d.ts b/packages/devextreme/js/file_management/custom_provider.d.ts index 7238822a56ea..fa76ba771562 100644 --- a/packages/devextreme/js/file_management/custom_provider.d.ts +++ b/packages/devextreme/js/file_management/custom_provider.d.ts @@ -6,6 +6,7 @@ import { /** * @public * @deprecated Use CustomFileSystemProviderOptions from /common/file_management instead + * @namespace DevExpress.fileManagement.CustomFileSystemProvider */ export type Options = CustomFileSystemProviderOptions; diff --git a/packages/devextreme/js/file_management/object_provider.d.ts b/packages/devextreme/js/file_management/object_provider.d.ts index 9fe3906bcd67..6bdb76a78eff 100644 --- a/packages/devextreme/js/file_management/object_provider.d.ts +++ b/packages/devextreme/js/file_management/object_provider.d.ts @@ -6,6 +6,7 @@ import { /** * @public * @deprecated Use ObjectFileSystemProviderOptions from /common/file_management instead + * @namespace DevExpress.fileManagement.ObjectFileSystemProvider */ export type Options = ObjectFileSystemProviderOptions; diff --git a/packages/devextreme/js/file_management/remote_provider.d.ts b/packages/devextreme/js/file_management/remote_provider.d.ts index 506f2e3549fd..3f66740e655e 100644 --- a/packages/devextreme/js/file_management/remote_provider.d.ts +++ b/packages/devextreme/js/file_management/remote_provider.d.ts @@ -6,6 +6,7 @@ import { /** * @public * @deprecated Use RemoteFileSystemProviderOptions from /common/file_management instead + * @namespace DevExpress.fileManagement.RemoteFileSystemProvider */ export type Options = RemoteFileSystemProviderOptions; diff --git a/packages/devextreme/ts/dx.all.d.ts b/packages/devextreme/ts/dx.all.d.ts index 16ed41f3ff67..6ac3e996fce1 100644 --- a/packages/devextreme/ts/dx.all.d.ts +++ b/packages/devextreme/ts/dx.all.d.ts @@ -7570,20 +7570,6 @@ declare module DevExpress.fileManagement { */ itemsExpr?: string | Function; } - /** - * @deprecated Use CustomFileSystemProviderOptions from /common/file_management instead - */ - export type Options = CustomFileSystemProviderOptions; - /** - * @public - * @deprecated Use ObjectFileSystemProviderOptions from /common/file_management instead - */ - export type Options = ObjectFileSystemProviderOptions; - /** - * @public - * @deprecated Use RemoteFileSystemProviderOptions from /common/file_management instead - */ - export type Options = RemoteFileSystemProviderOptions; /** * [descr:RemoteFileSystemProvider] */ @@ -7651,6 +7637,24 @@ declare module DevExpress.fileManagement { chunkIndex: number; } } +declare module DevExpress.fileManagement.CustomFileSystemProvider { + /** + * @deprecated Use CustomFileSystemProviderOptions from /common/file_management instead + */ + export type Options = CustomFileSystemProviderOptions; +} +declare module DevExpress.fileManagement.ObjectFileSystemProvider { + /** + * @deprecated Use ObjectFileSystemProviderOptions from /common/file_management instead + */ + export type Options = ObjectFileSystemProviderOptions; +} +declare module DevExpress.fileManagement.RemoteFileSystemProvider { + /** + * @deprecated Use RemoteFileSystemProviderOptions from /common/file_management instead + */ + export type Options = RemoteFileSystemProviderOptions; +} declare module DevExpress.localization { /** * [descr:localization.formatDate(value, format)]