You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've been adding optional zod schemas to a bunch of new surface area -- perhaps the right thing to do here would be to let you pass in a schema that gives you type safety and can be validated at runtime?
We've been adding optional zod schemas to a bunch of new surface area -- perhaps the right thing to do here would be to let you pass in a schema that gives you type safety and can be validated at runtime?
yeah that makes lots of sense to me. that's actually what we're doing here mongodb/chatbot#505. and then the typing could be inferred internally from the schema with z.infer<typeof ZodSchema>
The function
initDataset()
doesn't return typed values. this makes it burdensome to use within projects.you should be able to pass the type of your dataset, probably conforming to some base interface, to the function. something like:
The text was updated successfully, but these errors were encountered: