UNPKG
captcha-canvas-js
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
A simple captcha generator using canvas in JavaScript
captcha-canvas-js
/
dist
/
captcha
/
captcha.d.ts
9 lines
(8 loc)
•
311 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
type
{
CaptchaOptions
,
CaptchaStore
,
CaptchaResult
}
from
"../types"
;
export
declare
class
Captcha
{
private
store;
private
options;
constructor
(
store
:
CaptchaStore
,
options
?:
CaptchaOptions
);
generate
():
Promise
<
CaptchaResult
>;
verify
(
id
:
string
,
input
:
string
):
Promise
<
boolean
>; }