1.3.3 • Published 2 years ago
@types/js-captcha v1.3.3
Installation
npm install --save @types/js-captcha
Summary
This package contains type definitions for js-captcha (https://github.com/robiveli/js-captcha).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-captcha.
index.d.ts
// Type definitions for js-captcha 1.3
// Project: https://github.com/robiveli/js-captcha
// Definitions by: PikachuEXE <https://github.com/pikachuexe>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
declare namespace jCaptcha {
/**
* Options for the base jCaptcha class. Derived from https://github.com/robiveli/js-captcha#options
*/
interface Options {
el?: string | undefined;
requiredValue?: string | undefined;
resetOnError?: boolean | undefined;
focusOnError?: boolean | undefined;
clearOnSubmit?: boolean | undefined;
canvasClass?: string | undefined;
canvasStyle: {
width?: number | undefined;
height?: number | undefined;
font?: string | undefined;
fillStyle?: string | undefined;
textAlign?: string | undefined;
textBaseline?: string | undefined;
};
callback?: ((response: "success" | "error", captcha: Element, numberOfTries: number) => void) | undefined;
}
}
declare class jCaptcha {
constructor(options?: jCaptcha.Options);
validate(): void;
reset(): void;
}
export as namespace jCaptcha;
export = jCaptcha;
Additional Details
- Last updated: Thu, 08 Jul 2021 16:22:45 GMT
- Dependencies: none
- Global values:
jCaptcha
Credits
These definitions were written by PikachuEXE.