Custom type not inferring correct zod schema?

Shouldn't this return as an array of strings?
No description
2 Replies
DiamondDragon
DiamondDragonOP16mo 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
DiamondDragonOP16mo ago
also it appears same issue with text().array()
No description
Want results from more Discord servers?
Add your server