mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Embeddable] Fix typing workaround in the apply filter action (#137808)
This commit is contained in:
parent
477ea30038
commit
2ecc111097
2 changed files with 3 additions and 3 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { ThemeServiceSetup } from '@kbn/core/public';
|
||||
import type { IEmbeddable } from '@kbn/embeddable-plugin/public';
|
||||
import { toMountPoint } from '@kbn/kibana-react-plugin/public';
|
||||
import { Action, createAction, IncompatibleActionError } from '@kbn/ui-actions-plugin/public';
|
||||
// for cleanup esFilters need to fix the issue https://github.com/elastic/kibana/issues/131292
|
||||
|
@ -21,9 +22,7 @@ export const ACTION_GLOBAL_APPLY_FILTER = 'ACTION_GLOBAL_APPLY_FILTER';
|
|||
export interface ApplyGlobalFilterActionContext {
|
||||
filters: Filter[];
|
||||
timeFieldName?: string;
|
||||
// Need to make this unknown to prevent circular dependencies.
|
||||
// Apps using this property will need to cast to `IEmbeddable`.
|
||||
embeddable?: unknown;
|
||||
embeddable?: IEmbeddable;
|
||||
// controlledBy is an optional key in filter.meta that identifies the owner of a filter
|
||||
// Pass controlledBy to cleanup an existing filter(s) owned by embeddable prior to adding new filters
|
||||
controlledBy?: string;
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../data_views/tsconfig.json" },
|
||||
{ "path": "../embeddable/tsconfig.json" },
|
||||
{ "path": "../usage_collection/tsconfig.json" },
|
||||
{ "path": "../kibana_utils/tsconfig.json" },
|
||||
{ "path": "../kibana_react/tsconfig.json" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue