Skip to content

Commit

Permalink
fix ValueSourcesItems type (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
schiller-manuel authored Nov 3, 2024
1 parent f36d4f9 commit f555509
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions packages/core/modules/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ export type AnyRuleProperties = RuleProperties | RuleGroupExtProperties | RuleGr
export type AnyGroupProperties = GroupProperties | SwitchGroupProperties | CaseGroupProperties;
export type ItemProperties = AnyRuleProperties | GroupProperties;

export type TypedValueSourceMap<T> = {
[key in ValueSource]: T;
}

interface ExtraActionProperties {
// note: id can pre-generated for actions addRule, addGroup
id?: string;
Expand Down
3 changes: 1 addition & 2 deletions packages/ui/modules/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
ItemType,
ItemProperties,
ValueSource,
TypedValueSourceMap,
ConfigContext, FactoryWithContext, RenderedReactElement, SerializedFunction,
ConjsProps,

Expand Down Expand Up @@ -246,7 +245,7 @@ export interface ProviderProps {
export type ValueSourceItem = {
label: string;
}
type ValueSourcesItems = TypedValueSourceMap<ValueSourceItem>;
type ValueSourcesItems = Array<[ValueSource, ValueSourceItem]>;

export interface ValueSourcesProps {
config?: Config;
Expand Down

0 comments on commit f555509

Please sign in to comment.