new YupWeaver():
YupWeaver
static
config: (config
) =>YupWeaverConfig
Create a yup weaver config object
• config: YupWeaverConfigOptions
yup weaver config options
a yup weaver config object
packages/yup/src/index.ts:289
static
DescriptionMap:WeakMap
<Schema
<any
,any
,any
,""
>,SchemaDescription
>
packages/yup/src/index.ts:314
static
useConfig: (config
) => <TSchema
>(schema
) =>TSchema
&GraphQLSilk
<InferType
<TSchema
>,InferType
<TSchema
>>
Use a yup weaver config
• config: YupWeaverConfigOptions
yup weaver config options
Function
a new yup to silk function
get GraphQL Silk from Yup Schema
• TSchema extends Schema
<any
, any
, any
, any
>
• schema: TSchema
Yup Schema
TSchema
& GraphQLSilk
<InferType
<TSchema
>, InferType
<TSchema
>>
GraphQL Silk Like Yup Schema
packages/yup/src/index.ts:301
protected
static
describe(schema
):SchemaDescription
• schema: Schema
<any
, any
, any
, ""
>
SchemaDescription
packages/yup/src/index.ts:316
static
ensureInterfaceTypes(thunkList
):undefined
| readonlyGraphQLInterfaceType
[]
• thunkList: undefined
| ThunkReadonlyArray
<Schema
<any
, any
, any
, ""
>>
undefined
| readonly GraphQLInterfaceType
[]
packages/yup/src/index.ts:226
static
ensureSchema(schema
):Schema
<any
,any
,any
,""
>
• schema: Reference
<unknown
> | ISchema
<unknown
, unknown
, any
, any
>
Schema
<any
, any
, any
, ""
>
packages/yup/src/index.ts:219
static
getEnumType(description
):null
|GraphQLEnumType
• description: SchemaDescription
null
| GraphQLEnumType
packages/yup/src/index.ts:246
static
isEnumType(description
):boolean
• description: SchemaDescription
boolean
packages/yup/src/index.ts:240
static
toGraphQLType(schema
):GraphQLOutputType
• schema: Schema
<any
, any
, any
, ""
>
GraphQLOutputType
packages/yup/src/index.ts:97
static
toNullableGraphQLType(schema
):GraphQLOutputType
• schema: Schema
<any
, any
, any
, ""
>
GraphQLOutputType
packages/yup/src/index.ts:83
static
unravel<TSchema
>(schema
):TSchema
&GraphQLSilk
<InferType
<TSchema
>,InferType
<TSchema
>>
get GraphQL Silk from Yup Schema
• TSchema extends Schema
<any
, any
, any
, any
>
• schema: TSchema
Yup Schema
TSchema
& GraphQLSilk
<InferType
<TSchema
>, InferType
<TSchema
>>
GraphQL Silk Like Yup Schema
packages/yup/src/index.ts:60