import { instance } from "https://deno.land/x/valibot@v0.19.0/src/schemas/instance/instance.ts";
Creates an instance schema.
Type Parameters
TClass extends Class
Parameters
of: TClass
The class of the instance.
optional
error: ErrorMessageThe error message.
Returns
An instance schema.