Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/index.ts>IssueDotPath

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
type alias IssueDotPath
Re-export
import { type IssueDotPath } from "https://deno.land/x/valibot@v0.35.0/src/index.ts";

Issue dot path type.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>
definition: TSchema extends ArraySchema<infer TItem, ErrorMessage<ArrayIssue> | undefined> | ArraySchemaAsync<infer TItem, ErrorMessage<ArrayIssue> | undefined> ? DotPath<number, TItem> : TSchema extends
| IntersectSchema<infer TOptions, ErrorMessage<IntersectIssue> | undefined>
| IntersectSchemaAsync<infer TOptions, ErrorMessage<IntersectIssue> | undefined>
| UnionSchema<infer TOptions, ErrorMessage<UnionIssue<BaseIssue<unknown>>> | undefined>
| UnionSchemaAsync<infer TOptions, ErrorMessage<UnionIssue<BaseIssue<unknown>>> | undefined>
? IssueDotPath<TOptions[number]> : TSchema extends
| MapSchema<infer TKey, infer TValue, ErrorMessage<MapIssue> | undefined>
| MapSchemaAsync<infer TKey, infer TValue, ErrorMessage<MapIssue> | undefined>
| RecordSchema<infer TKey, infer TValue, ErrorMessage<RecordIssue> | undefined>
| RecordSchemaAsync<infer TKey, infer TValue, ErrorMessage<RecordIssue> | undefined>
? DotPath<InferInput<TKey>, TValue> : TSchema extends
| LooseObjectSchema<infer TEntries, ErrorMessage<LooseObjectIssue> | undefined>
| LooseObjectSchemaAsync<infer TEntries, ErrorMessage<LooseObjectIssue> | undefined>
| ObjectSchema<infer TEntries, ErrorMessage<ObjectIssue> | undefined>
| ObjectSchemaAsync<infer TEntries, ErrorMessage<ObjectIssue> | undefined>
| StrictObjectSchema<infer TEntries, ErrorMessage<StrictObjectIssue> | undefined>
| StrictObjectSchemaAsync<infer TEntries, ErrorMessage<StrictObjectIssue> | undefined>
? ObjectPath<TEntries> : TSchema extends ObjectWithRestSchema<ObjectEntries, BaseSchema<unknown, unknown, BaseIssue<unknown>>, ErrorMessage<ObjectWithRestIssue> | undefined> | ObjectWithRestSchemaAsync<ObjectEntriesAsync, BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, ErrorMessage<ObjectWithRestIssue> | undefined> ? string : TSchema extends SetSchema<infer TValue, ErrorMessage<SetIssue> | undefined> | SetSchemaAsync<infer TValue, ErrorMessage<SetIssue> | undefined> ? DotPath<number, TValue> : TSchema extends
| LooseTupleSchema<infer TItems, ErrorMessage<LooseTupleIssue> | undefined>
| LooseTupleSchemaAsync<infer TItems, ErrorMessage<LooseTupleIssue> | undefined>
| StrictTupleSchema<infer TItems, ErrorMessage<StrictTupleIssue> | undefined>
| TupleSchema<infer TItems, ErrorMessage<TupleIssue> | undefined>
| TupleSchemaAsync<infer TItems, ErrorMessage<TupleIssue> | undefined>
? TuplePath<TItems> : TSchema extends TupleWithRestSchema<infer TItems, infer TRest, ErrorMessage<TupleWithRestIssue> | undefined> | TupleWithRestSchemaAsync<infer TItems, infer TRest, ErrorMessage<TupleWithRestIssue> | undefined> ? TuplePath<TItems> | DotPath<number, TRest> : TSchema extends
| LazySchema<infer TWrapped>
| LazySchemaAsync<infer TWrapped>
| NonNullableSchema<infer TWrapped, ErrorMessage<NonNullableIssue> | undefined>
| NonNullableSchemaAsync<infer TWrapped, ErrorMessage<NonNullableIssue> | undefined>
| NonNullishSchema<infer TWrapped, ErrorMessage<NonNullishIssue> | undefined>
| NonNullishSchemaAsync<infer TWrapped, ErrorMessage<NonNullishIssue> | undefined>
| NonOptionalSchema<infer TWrapped, ErrorMessage<NonOptionalIssue> | undefined>
| NonOptionalSchemaAsync<infer TWrapped, ErrorMessage<NonOptionalIssue> | undefined>
| NullableSchema<infer TWrapped, Default<BaseSchema<unknown, unknown, BaseIssue<unknown>>, null>>
| NullableSchemaAsync<infer TWrapped, DefaultAsync<BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, null>>
| NullishSchema<infer TWrapped, Default<BaseSchema<unknown, unknown, BaseIssue<unknown>>, null | undefined>>
| NullishSchemaAsync<infer TWrapped, DefaultAsync<BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, null | undefined>>
| OptionalSchema<infer TWrapped, Default<BaseSchema<unknown, unknown, BaseIssue<unknown>>, undefined>>
| OptionalSchemaAsync<infer TWrapped, DefaultAsync<BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, undefined>>
? IssueDotPath<TWrapped> : never