arcjet-js icon indicating copy to clipboard operation
arcjet-js copied to clipboard

Figure out if we can avoid cast in `@arcjet/next`

Open blaine-arcjet opened this issue 1 year ago • 0 comments

TypeScript seems to get confused in the protect() function of @arcjet/next because we are manipulating generics. We currently just cast to an ArcjetRequest<Rules> but we should investigate if we can avoid the cast.

blaine-arcjet avatar Nov 06 '23 14:11 blaine-arcjet