Custom type not inferring correct zod schema?

Shouldn't this return as an array of strings?
No description
2 Replies
DiamondDragon
DiamondDragonOP2y ago
This fixes it in case anyone runs into this
export const selectOpenSearchResponseDataSchema = createSelectSchema(
openSearchResponseData,
{
owner_names: z.array(z.string()),
},
)
export const selectOpenSearchResponseDataSchema = createSelectSchema(
openSearchResponseData,
{
owner_names: z.array(z.string()),
},
)
DiamondDragon
DiamondDragonOP2y ago
also it appears same issue with text().array()
No description

Did you find this page helpful?