diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2019-02-03 22:21:55 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-03 22:21:55 +0900 |
| commit | ce576dea8fe3356e919723f71d7ea09d378f3bea (patch) | |
| tree | 39b443c01ccbbebb8e49513bf304cbcd1d15767a /src/@types | |
| parent | Create new type definition for 'escape-regexp' (#4058) (diff) | |
| download | sharkey-ce576dea8fe3356e919723f71d7ea09d378f3bea.tar.gz sharkey-ce576dea8fe3356e919723f71d7ea09d378f3bea.tar.bz2 sharkey-ce576dea8fe3356e919723f71d7ea09d378f3bea.zip | |
Create type definition for 'recaptcha-promise' (#4068)
Diffstat (limited to 'src/@types')
| -rw-r--r-- | src/@types/recaptcha-promise.d.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/@types/recaptcha-promise.d.ts b/src/@types/recaptcha-promise.d.ts new file mode 100644 index 0000000000..cfbd5eebf2 --- /dev/null +++ b/src/@types/recaptcha-promise.d.ts @@ -0,0 +1,16 @@ +declare module 'recaptcha-promise' { + interface IVerifyOptions { + secret_key?: string; + } + + interface IVerify { + (response: string, remoteAddress?: string): Promise<boolean>; + init(options: IVerifyOptions): IVerify; + } + + namespace recaptchaPromise {} // Hack + + const verify: IVerify; + + export = verify; +} |