Class: ValibotMetadataCollector

Constructors

new ValibotMetadataCollector()

new ValibotMetadataCollector(): ValibotMetadataCollector

Returns

ValibotMetadataCollector

Properties

IDActionTypes

static IDActionTypes: Set<string>

Defined in

packages/valibot/src/metadata.ts:137

Methods

getConfig()

protected static getConfig<T>(configType, schemas): undefined | T["config"]

Type Parameters

T extends AsObjectTypeMetadata<object> | AsEnumTypeMetadata<any> | AsUnionTypeMetadata<object>

Parameters

configType: T["type"]

schemas: PipedSchema[]

Returns

undefined | T["config"]

Defined in

packages/valibot/src/metadata.ts:85


getEnumConfig()

static getEnumConfig(...schemas): undefined | EnumTypeConfig<any>

Parameters

• ...schemas: PipedSchema[]

Returns

undefined | EnumTypeConfig<any>

Defined in

packages/valibot/src/metadata.ts:67


getFieldConfig()

static getFieldConfig(...schemas): undefined | FieldConfig

Parameters

• ...schemas: PipedSchema[]

Returns

undefined | FieldConfig

Defined in

packages/valibot/src/metadata.ts:24


getObjectConfig()

static getObjectConfig(...schemas): undefined | Partial<Omit<GraphQLObjectTypeConfig<any, any>, "interfaces" | "fields">> & object

Parameters

• ...schemas: PipedSchema[]

Returns

undefined | Partial<Omit<GraphQLObjectTypeConfig<any, any>, "interfaces" | "fields">> & object

Defined in

packages/valibot/src/metadata.ts:58


getPipe()

static getPipe(...schemas): (PipeItem<unknown, unknown, BaseIssue<unknown>> | PipeItemAsync<unknown, unknown, BaseIssue<unknown>>)[]

Parameters

• ...schemas: (undefined | PipedSchema)[]

Returns

(PipeItem<unknown, unknown, BaseIssue<unknown>> | PipeItemAsync<unknown, unknown, BaseIssue<unknown>>)[]

Defined in

packages/valibot/src/metadata.ts:146


getTypenameByLiteral()

protected static getTypenameByLiteral(item): undefined | string

Parameters

item: PipeItem<unknown, unknown, BaseIssue<unknown>> | PipeItemAsync<unknown, unknown, BaseIssue<unknown>>

Returns

undefined | string

Defined in

packages/valibot/src/metadata.ts:112


getUnionConfig()

static getUnionConfig(...schemas): undefined | Partial<GraphQLUnionTypeConfig<any, any>>

Parameters

• ...schemas: PipedSchema[]

Returns

undefined | Partial<GraphQLUnionTypeConfig<any, any>>

Defined in

packages/valibot/src/metadata.ts:76


isID()

static isID(...schemas): boolean

Parameters

• ...schemas: PipedSchema[]

Returns

boolean

Defined in

packages/valibot/src/metadata.ts:139


isInteger()

static isInteger(...schemas): boolean

Parameters

• ...schemas: PipedSchema[]

Returns

boolean

Defined in

packages/valibot/src/metadata.ts:132