@univerjs/sheets-conditional-formatting v0.5.0-beta.1Docs


Function: getValueByType()

function getValueByType(
   value, 
   matrix, 
   context): {
  result: undefined;
  status: FormulaResultStatus.NOT_REGISTER;
 } | {
  result: Nullable<
     | undefined
     | null
     | string
     | number
     | boolean
     | void>;
  status: FormulaResultStatus.SUCCESS;
}

Parameters

ParameterType
valueIValueConfig
matrixObjectMatrix<number>
contextIContext & { cfId: string; }

Returns

{ result: undefined; status: FormulaResultStatus.NOT_REGISTER; } | { result: Nullable< | undefined | null | string | number | boolean | void>; status: FormulaResultStatus.SUCCESS; }

Defined in

sheets-conditional-formatting/src/services/calculate-unit/utils.ts:91