silk<
TScalar
>(type
,parse
?):GraphQLSilk
<InferScalarInternal
<TScalar
> |undefined
,InferScalarInternal
<TScalar
> |undefined
>
Create a Silk from Scalar.
• TScalar extends GraphQLScalarType
<unknown
, unknown
>
• type: TScalar
| () => TScalar
• parse?
GraphQLSilk
<InferScalarInternal
<TScalar
> | undefined
, InferScalarInternal
<TScalar
> | undefined
>
packages/core/src/resolver/silk.ts:16
silk<
TOutput
,TInput
>(type
,validate
?):GraphQLSilk
<TOutput
,TInput
>
Create a GraphQLSilk Object.
• TOutput
• TInput = TOutput
• type: GraphQLOutputType
| () => GraphQLOutputType
• validate?
GraphQLSilk
<TOutput
, TInput
>
packages/core/src/resolver/silk.ts:31