diff --git a/packages/core/modules/index.d.ts b/packages/core/modules/index.d.ts index 36a96b081..ec43f9271 100644 --- a/packages/core/modules/index.d.ts +++ b/packages/core/modules/index.d.ts @@ -173,10 +173,6 @@ export type AnyRuleProperties = RuleProperties | RuleGroupExtProperties | RuleGr export type AnyGroupProperties = GroupProperties | SwitchGroupProperties | CaseGroupProperties; export type ItemProperties = AnyRuleProperties | GroupProperties; -export type TypedValueSourceMap = { - [key in ValueSource]: T; -} - interface ExtraActionProperties { // note: id can pre-generated for actions addRule, addGroup id?: string; diff --git a/packages/ui/modules/index.d.ts b/packages/ui/modules/index.d.ts index ea28b6a14..51f5e3de8 100644 --- a/packages/ui/modules/index.d.ts +++ b/packages/ui/modules/index.d.ts @@ -12,7 +12,6 @@ import { ItemType, ItemProperties, ValueSource, - TypedValueSourceMap, ConfigContext, FactoryWithContext, RenderedReactElement, SerializedFunction, ConjsProps, @@ -246,7 +245,7 @@ export interface ProviderProps { export type ValueSourceItem = { label: string; } -type ValueSourcesItems = TypedValueSourceMap; +type ValueSourcesItems = Array<[ValueSource, ValueSourceItem]>; export interface ValueSourcesProps { config?: Config;