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:279
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:294
static
vendor:string
="valibot"
packages/valibot/src/index.ts:40
protected
static
ensureInterfaceType(item
):GraphQLInterfaceType
• item: GraphQLInterfaceType
| GenericSchema
<unknown
, unknown
, BaseIssue
<unknown
>> | GenericSchemaAsync
<unknown
, unknown
, BaseIssue
<unknown
>>
GraphQLInterfaceType
packages/valibot/src/index.ts:263
static
getGraphQLType(schema
):GraphQLOutputType
• schema: GenericSchemaOrAsync
GraphQLOutputType
packages/valibot/src/index.ts:307
static
getGraphQLTypeBySelf(this
):GraphQLOutputType
• this: GenericSchemaOrAsync
GraphQLOutputType
packages/valibot/src/index.ts:311
protected
static
nullable(ofType
,wrapper
):GraphQLOutputType
• ofType: GraphQLOutputType
• wrapper: GenericSchemaOrAsync
GraphQLOutputType
packages/valibot/src/index.ts:253
static
toGraphQLType(schema
, ...wrappers
):GraphQLOutputType
• schema: GenericSchemaOrAsync
• ...wrappers: GenericSchemaOrAsync
[]
GraphQLOutputType
packages/valibot/src/index.ts:79
static
toGraphQLTypePurely(valibotSchema
, ...wrappers
):GraphQLOutputType
• valibotSchema: GenericSchemaOrAsync
• ...wrappers: GenericSchemaOrAsync
[]
GraphQLOutputType
packages/valibot/src/index.ts:89
static
toNullableGraphQLType(schema
):GraphQLOutputType
• schema: GenericSchemaOrAsync
GraphQLOutputType
packages/valibot/src/index.ts:71
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:55
static
weave(...inputs
):GraphQLSchema
Weave a GraphQL Schema from resolvers with valibot schema
• ...inputs: (GraphQLSilk
<any
, any
> | SilkResolver
| WeaverConfig
| SchemaWeaver
| Middleware
)[]
Resolvers, Global Middlewares, WeaverConfigs Or SchemaWeaver
GraphQLSchema
GraphQL Schema
packages/valibot/src/index.ts:47