From 47deb163b27684e3c726ec706fbd0f3523fbdc0c Mon Sep 17 00:00:00 2001 From: Felix Ouk Date: Thu, 14 Sep 2017 17:54:46 -0700 Subject: [PATCH] Update field component's supported actions --- src/components/field/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/field/index.tsx b/src/components/field/index.tsx index 0687e9a06..e8bdb0de8 100644 --- a/src/components/field/index.tsx +++ b/src/components/field/index.tsx @@ -6,6 +6,7 @@ import {DragElementWrapper, DragSource, DragSourceCollector, DragSourceSpec} fro import * as TetherComponent from 'react-tether'; import {OneOfFilter, RangeFilter} from 'vega-lite/build/src/filter'; import {FilterAction} from '../../actions'; +import {CustomWildcardAction} from '../../actions/custom-wildcard-field'; import {DatasetSchemaChangeFieldType} from '../../actions/dataset'; import {ShelfAction} from '../../actions/shelf'; import {FILTER_TOGGLE} from '../../actions/shelf/filter'; @@ -48,7 +49,8 @@ export interface FieldPropsBase { /** Remove field event handler. If not provided, remove button will disappear. */ onRemove?: () => void; - handleAction?: (action: FilterAction | ShelfAction | DatasetSchemaChangeFieldType) => void; + handleAction?: (action: CustomWildcardAction | FilterAction | + ShelfAction | DatasetSchemaChangeFieldType) => void; /** * If filter button is shown, we need to provide filters to check duplicated filters.