import { type DefaultValue } from "https://deno.land/x/valibot@v0.24.0/src/methods/index.ts";
Default value type.
Type Parameters
TSchema extends SchemaWithMaybeDefault | SchemaWithMaybeDefaultAsync
definition: TSchema["default"] extends Output<TSchema> | undefined ? TSchema["default"] : TSchema["default"] extends () => Output<TSchema> | undefined ? ReturnType<TSchema["default"]> : TSchema["default"] extends () => Promise<Output<TSchema> | undefined> ? Awaited<ReturnType<TSchema["default"]>> : undefined