mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #30880 from glen-84/grecaptcha-sitekey-optional
[grecaptcha] sitekey is optional
This commit is contained in:
@@ -18,11 +18,15 @@ const badge1: ReCaptchaV2.Badge = "bottomleft";
|
||||
const badge2: ReCaptchaV2.Badge = "bottomright";
|
||||
const badge3: ReCaptchaV2.Badge = "inline";
|
||||
|
||||
const invisibleParams: ReCaptchaV2.Parameters = {
|
||||
const invisibleParams1: ReCaptchaV2.Parameters = {
|
||||
sitekey: "siteKey",
|
||||
badge: badge1,
|
||||
};
|
||||
|
||||
const invisibleParams2: ReCaptchaV2.Parameters = {
|
||||
badge: badge2,
|
||||
};
|
||||
|
||||
const id1: number = grecaptcha.render("foo");
|
||||
const id2: number = grecaptcha.render("foo", params);
|
||||
const id3: number = grecaptcha.render(document.getElementById("foo"));
|
||||
|
||||
Vendored
+1
-1
@@ -46,7 +46,7 @@ declare namespace ReCaptchaV2 {
|
||||
/**
|
||||
* Your sitekey.
|
||||
*/
|
||||
sitekey: string;
|
||||
sitekey?: string;
|
||||
/**
|
||||
* Optional. The color theme of the widget.
|
||||
* Accepted values: "light", "dark"
|
||||
|
||||
Reference in New Issue
Block a user