import { is } from "https://deno.land/x/valibot@v0.35.0/src/index.ts";
Checks if the input matches the scheme. By using a type predicate, this function 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
input is InferInput<TSchema>
Whether the input matches the scheme.