Skip to content

Commit

Permalink
Accept null as a valid type in optional string params
Browse files Browse the repository at this point in the history
  • Loading branch information
snelsi committed Jan 24, 2024
1 parent 2a93268 commit a2e3ff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export const getRecaptchaScriptSrc = ({
useRecaptchaNet = false,
useEnterprise = false,
}: {
reCaptchaKey?: string;
language?: string;
reCaptchaKey?: string | null;
language?: string | null;
useRecaptchaNet?: boolean;
useEnterprise?: boolean;
} = {}): string => {
Expand Down

0 comments on commit a2e3ff1

Please sign in to comment.