import { safeParseAsync } from "https://deno.land/x/valibot@v0.30.0/src/methods/safeParse/index.ts";
Parses an unknown input based on a schema.
Type Parameters
TSchema extends BaseSchema | BaseSchemaAsync
Parameters
schema: TSchema
The schema to be used.
optional
config: SchemaConfigThe parse configuration.
Returns
Promise<SafeParseResult<TSchema>>
The parsed output.