import { getDefaultAsync } from "https://deno.land/x/valibot@v0.24.0/src/methods/getDefault/index.ts";
Returns the default value of the schema.
Type Parameters
TSchema extends SchemaWithMaybeDefault | SchemaWithMaybeDefaultAsync
Parameters
schema: TSchema
The schema to get the default value from.
Returns
Promise<DefaultValue<TSchema>>
The default value.