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
Previously, in the types, `options` were optional, but they are required.
Zod validation additionally marked the *entire* options objects as optional. But it is instead *fields* that are (sometimes) optional.
To make sure the types are correct, I used `satisfies IntegrationRule<>`. To make sure Zod is correct, you can use something like:
```ts
const example: z.infer<typeof validateSlidingWindowOptions> = {
interval: 123,
max: 123,
};
```
I verified with the Astro example, and noticed that it said every email I provided was invalid. That led me to think something was wrong. So instead of denying most emails with an empty `allow: []`, this now allows free emails (such as gmail) and emails w/o gravatar (such as my work email).
ClosesGH-5016.
0 commit comments