transform
DDataParser.transform(inner, fn) applies a parser, then transforms the validated value (synchronously or asynchronously) before returning it. Ideal to create business objects (URL, Date, DTOs) without a manual pipe.
Interactive example
Parameters
inner: starting parser (string, object, etc.).theFunction(value, error): transformation function (can useerrorto signal a custom error by returningSymbolDataParserError).checkers:checkerRefineapplied on the transformed result.errorMessage: generic message if the pipeline fails.
Return value
A DataParserTransform. schema.parse(data) validates the input with inner, executes theFunction, and returns the new value via DEither.success. If any stage fails, you receive DEither.error<DataParserError> with the full trace.
