new ValibotWeaver():
ValibotWeaver
static
config: (config
) =>ValibotWeaverConfig
Create a Valibot weaver config object
• config: ValibotWeaverConfigOptions
Valibot weaver config options
ValibotWeaverConfig
a Valibot weaver config object
packages/valibot/src/index.ts:273
static
useConfig: (config
) => <TSchema
>(schema
) =>TSchema
&GraphQLSilk
<InferOutput
<TSchema
>,InferInput
<TSchema
>>
Use a Valibot weaver config
• config: ValibotWeaverConfigOptions
Valibot weaver config options
Function
a new Valibot to silk function
get GraphQL Silk from Valibot Schema
• TSchema extends GenericSchemaOrAsync
• schema: TSchema
Valibot Schema
TSchema
& GraphQLSilk
<InferOutput
<TSchema
>, InferInput
<TSchema
>>
GraphQL Silk Like Valibot Schema
packages/valibot/src/index.ts:288
static
vendor:string
="valibot"
packages/valibot/src/index.ts:38
protected
static
ensureInterfaceType(item
):GraphQLInterfaceType
• item: GraphQLInterfaceType
| GenericSchema
<unknown
, unknown
, BaseIssue
<unknown
>> | GenericSchemaAsync
<unknown
, unknown
, BaseIssue
<unknown
>>
GraphQLInterfaceType
packages/valibot/src/index.ts:257
static
getGraphQLType(schema
):GraphQLOutputType
• schema: GenericSchemaOrAsync
GraphQLOutputType
packages/valibot/src/index.ts:310
static
getGraphQLTypeBySelf(this
):GraphQLOutputType
• this: GenericSchemaOrAsync
GraphQLOutputType
packages/valibot/src/index.ts:314
protected
static
nullable(ofType
,wrapper
):GraphQLOutputType
• ofType: GraphQLOutputType
• wrapper: GenericSchemaOrAsync
GraphQLOutputType
packages/valibot/src/index.ts:247
static
parse<TSchema
>(this
,input
):InferOutput
<TSchema
> |Promise
<InferOutput
<TSchema
>>
• TSchema extends GenericSchemaOrAsync
• this: TSchema
• input: unknown
InferOutput
<TSchema
> | Promise
<InferOutput
<TSchema
>>
packages/valibot/src/index.ts:301
static
toGraphQLType(schema
, ...wrappers
):GraphQLOutputType
• schema: GenericSchemaOrAsync
• ...wrappers: GenericSchemaOrAsync
[]
GraphQLOutputType
packages/valibot/src/index.ts:69
static
toGraphQLTypePurely(valibotSchema
, ...wrappers
):GraphQLOutputType
• valibotSchema: GenericSchemaOrAsync
• ...wrappers: GenericSchemaOrAsync
[]
GraphQLOutputType
packages/valibot/src/index.ts:79
static
toNullableGraphQLType(schema
):GraphQLOutputType
• schema: GenericSchemaOrAsync
GraphQLOutputType
packages/valibot/src/index.ts:61
static
unravel<TSchema
>(schema
):TSchema
&GraphQLSilk
<InferOutput
<TSchema
>,InferInput
<TSchema
>>
get GraphQL Silk from Valibot Schema
• TSchema extends GenericSchemaOrAsync
• schema: TSchema
Valibot Schema
TSchema
& GraphQLSilk
<InferOutput
<TSchema
>, InferInput
<TSchema
>>
GraphQL Silk Like Valibot Schema
packages/valibot/src/index.ts:45