diff --git a/x-pack/legacy/plugins/canvas/server/lib/build_embeddable_filters.ts b/x-pack/legacy/plugins/canvas/server/lib/build_embeddable_filters.ts index 254a7ad8b3637..52fcc9813a93d 100644 --- a/x-pack/legacy/plugins/canvas/server/lib/build_embeddable_filters.ts +++ b/x-pack/legacy/plugins/canvas/server/lib/build_embeddable_filters.ts @@ -7,7 +7,13 @@ import { Filter } from '../../types'; // @ts-ignore Untyped Local import { buildBoolArray } from './build_bool_array'; -import { TimeRange, esFilters } from '../../../../../../src/plugins/data/server'; + +// TODO: We should be importing from `data/server` below instead of `data/common`, but +// need to keep `data/common` since the contents of this file are currently imported +// by the browser. This file should probably be refactored so that the pieces required +// on the client live in a `public` directory instead. See kibana/issues/52343 +// eslint-disable-next-line @kbn/eslint/no-restricted-paths +import { TimeRange, esFilters } from '../../../../../../src/plugins/data/common'; export interface EmbeddableFilterInput { filters: esFilters.Filter[];