Browse Source

style(core): remove unused type

Karel Van De Winkel 4 years ago
parent
commit
67933da9e2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      packages/core/src/config/promotion/promotion-action.ts

+ 1 - 2
packages/core/src/config/promotion/promotion-action.ts

@@ -20,8 +20,7 @@ import { PromotionConditionState } from './promotion-condition';
 export type ConditionConfig = {
 export type ConditionConfig = {
     [name: string]: { required?: boolean };
     [name: string]: { required?: boolean };
 }
 }
-export type ConditionRequiredKeys<U extends ConditionConfig, value extends true | false> =
-    NonNullable<{ [K in keyof U]: value extends U[K]['required'] ? K : never }[keyof U]>;
+
 export type ConditionalState<U extends ConditionConfig> = {
 export type ConditionalState<U extends ConditionConfig> = {
     [K in keyof U]: U[K]['required'] extends true ? PromotionConditionState : PromotionConditionState | undefined;
     [K in keyof U]: U[K]['required'] extends true ? PromotionConditionState : PromotionConditionState | undefined;
 }
 }