fn

runPreprocessors

tested

Run the preprocessor chain, threading { elementState, data }.

Signature

ts
export function runPreprocessors(
  processors: readonly MaskPreprocessor[],
  elementState: ElementState,
  data: string,
  action: MaskAction,
):{ ... }

Parameters

ParameterTypeDescription
processorsreadonly MaskPreprocessor[]
elementStateElementState
datastring
actionMaskAction

Returns

{ elementState: ElementState; data: string }
PropertyTypeDescription
elementStateElementState
datastring