Function: zodSilk()

zodSilk(schema)

zodSilk<TSchema>(schema): TSchema & GraphQLSilk<z.output<TSchema>, z.input<TSchema>>

get GraphQL Silk from Zod Schema

Type Parameters

TSchema extends ZodType<any, ZodTypeDef, any>

Parameters

schema: TSchema

Zod Schema

Returns

TSchema & GraphQLSilk<z.output<TSchema>, z.input<TSchema>>

GraphQL Silk Like Zod Schema

Defined in

packages/zod/src/index.ts:420

zodSilk(silk)

zodSilk<TSilk>(silk): TSilk

get GraphQL Silk from Zod Schema

Type Parameters

TSilk extends GraphQLSilk<any, any>

Parameters

silk: TSilk

GraphQL Silk

Returns

TSilk

GraphQL Silk

Defined in

packages/zod/src/index.ts:429