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