diff --git a/packages/core/saved-objects/core-saved-objects-common/src/saved_objects.ts b/packages/core/saved-objects/core-saved-objects-common/src/saved_objects.ts index ae559f455ac03..12e554cf185c8 100644 --- a/packages/core/saved-objects/core-saved-objects-common/src/saved_objects.ts +++ b/packages/core/saved-objects/core-saved-objects-common/src/saved_objects.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import * as serverTypes from './will_move_to_server'; +import * as serverTypes from './server_types'; /** * Information about the migrations that have been applied to this SavedObject. diff --git a/packages/core/saved-objects/core-saved-objects-common/src/will_move_to_server.ts b/packages/core/saved-objects/core-saved-objects-common/src/server_types.ts similarity index 92% rename from packages/core/saved-objects/core-saved-objects-common/src/will_move_to_server.ts rename to packages/core/saved-objects/core-saved-objects-common/src/server_types.ts index 802a0fe7e9d84..8b0ae5c819952 100644 --- a/packages/core/saved-objects/core-saved-objects-common/src/will_move_to_server.ts +++ b/packages/core/saved-objects/core-saved-objects-common/src/server_types.ts @@ -6,6 +6,14 @@ * Side Public License, v 1. */ +/** + * Note: this file contains types that are intended for use by server-side code + * only. Once the Saved Objects client is removed from browser code we will + * remove these types as well. + * + * See https://github.com/elastic/kibana/issues/149098. + */ + import type { SavedObjectsMigrationVersion, SavedObjectError } from './saved_objects'; /** diff --git a/packages/core/saved-objects/core-saved-objects-server/index.ts b/packages/core/saved-objects/core-saved-objects-server/index.ts index b65cbef68dc18..f99a813d01b7d 100644 --- a/packages/core/saved-objects/core-saved-objects-server/index.ts +++ b/packages/core/saved-objects/core-saved-objects-server/index.ts @@ -95,4 +95,4 @@ export type { SavedObjectAttribute, SavedObjectAttributeSingle, SavedObjectReference, -} from '@kbn/core-saved-objects-common/src/will_move_to_server'; +} from '@kbn/core-saved-objects-common/src/server_types';