Fix import causing Kibana to crash in IE11. (#52248) (#52583)

This commit is contained in:
Luke Elmers 2019-12-09 21:33:03 -07:00 committed by GitHub
parent c72fae4ddf
commit 99403332b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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[];