From 1f92885daeed2c1cda65fce65ace042a9589282d Mon Sep 17 00:00:00 2001 From: blaine-arcjet <146491715+blaine-arcjet@users.noreply.github.com> Date: Tue, 6 Feb 2024 08:56:22 -0700 Subject: [PATCH] fix!: Required of props should always be required (#180) I previously over-applied the `Partial` in that extra props required by rules would be made optional at the `protect()` function. This changes makes it so the requiredness of props aren't changed. --- arcjet/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arcjet/index.ts b/arcjet/index.ts index ef9c5729a..daed5fe35 100644 --- a/arcjet/index.ts +++ b/arcjet/index.ts @@ -557,7 +557,7 @@ export type ExtraProps = Rules extends [] * @property ...extra - Extra data that might be useful for Arcjet. For example, requested tokens are specified as the `requested` property. */ export type ArcjetRequest = Simplify< - Partial + Partial & Props >; function isLocalRule(