import { assert } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/index.ts";
Checks if the input matches the schema. As this is an assertion function, it can be used as a type guard.
Type Parameters
TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
Parameters
schema: TSchema
The schema to be used.
Returns
asserts input is InferInput<TSchema>