import { transformAsync } from "https://deno.land/x/valibot@v0.22.0/src/index.ts";
Adds an async transformation step to a schema, which is executed at the end of parsing and can change the output type.
Type Parameters
TSchema extends BaseSchema | BaseSchemaAsync
Adds an async transformation step to a schema, which is executed at the end of parsing and can change the output type.
Type Parameters
TSchema extends BaseSchema | BaseSchemaAsync
Parameters
action: (value: Output<TSchema>, info: TransformInfo) => TOutput | Promise<TOutput>
The transformation action.