TypeScript issue with `protectSignup` `email` property
bug
Edit: This appears to be a general issue with `protectSignup`. I've seen it in nest too
When updating the Fastify example app to `1.1.0-rc` I got a typescript error when calling protect here
https://github.com/arcjet/examples/blob/f6b7bf641345d8ef507ef75c4af827ca10d504d4/examples/fastify/src/routes/signup.ts#L45-L47
```
src/routes/signup.ts:45:54 - error TS2554: Expected 1 arguments, but got 2.
45 const decision = await arcjet.protect(request, {
~
46 email: request.body.email,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
47 });
```
4 条评论