We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This allows adapters to transform the source object to match the schema, see #22.
For example:
type Adapter<T extends z.AnyZodObject = z.AnyZodObject> = { read: (schema: T) => Promise<z.infer<T>>; // ... };
The benefit is that for a custom adapter, you won't need to pass the schema to it every time you create it.
Since adapters may as well ignore this argument, this would be a backwards compatible change.
The text was updated successfully, but these errors were encountered:
I opened this issue specifically for #22, but I suggest to first explore some directions in that issue. ;)
Sorry, something went wrong.
No branches or pull requests
This allows adapters to transform the source object to match the schema, see #22.
For example:
The benefit is that for a custom adapter, you won't need to pass the schema to it every time you create it.
Since adapters may as well ignore this argument, this would be a backwards compatible change.
The text was updated successfully, but these errors were encountered: