mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-25 22:23:09 +02:00
16 lines
308 B
TypeScript
16 lines
308 B
TypeScript
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;
|
|
}
|