diff --git a/packages/s2-core/src/common/interface/condition.ts b/packages/s2-core/src/common/interface/condition.ts index f215d0bea4..d792b3433c 100644 --- a/packages/s2-core/src/common/interface/condition.ts +++ b/packages/s2-core/src/common/interface/condition.ts @@ -29,7 +29,7 @@ export interface MappingResult extends ValueRange { export type MappingFunction = ( fieldValue: number | string, data: Record, -) => MappingResult; +) => MappingResult | null | undefined; /** * One field can hold a condition