Create type definition for 'recaptcha-promise' (#4068)

This commit is contained in:
Acid Chicken (硫酸鶏)
2019-02-03 22:21:55 +09:00
committed by GitHub
parent ceda3dd72a
commit ce576dea8f
2 changed files with 17 additions and 2 deletions

16
src/@types/recaptcha-promise.d.ts vendored Normal file
View File

@ -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;
}