From 0cd910083a0476b0c884a1fd281ceba1bfbd73b3 Mon Sep 17 00:00:00 2001 From: Shreyash Raj Date: Thu, 11 Aug 2022 10:37:21 +0530 Subject: [PATCH] small updates --- ts-script/extra.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ts-script/extra.ts b/ts-script/extra.ts index e5b37ee..c2fe5e1 100644 --- a/ts-script/extra.ts +++ b/ts-script/extra.ts @@ -30,20 +30,19 @@ export function createCaptcha(width: number, height: number, option: CreateCaptc captcha.drawCaptcha(option.captcha); - const text = captcha.text; captcha.drawTrace(option.trace); captcha.addDecoy({ opacity: 1 }); return { image: captcha.png, text: captcha.text }; -}; +} /** * Create captcha in sync mode. * @param {number} width captcha image width. * @param {number} height captcha image height. * @param {CreateCaptchaOptions} [option] Captcha text. - * @returns + * @returns */ export function createCaptchaSync(width: number, height: number, option: CreateCaptchaOptions = {}): captchaValueSync { const captcha = new Captcha(width, height); @@ -63,4 +62,4 @@ export function createCaptchaSync(width: number, height: number, option: CreateC captcha.addDecoy({ opacity: 1 }); return { image: captcha.png, text: captcha.text }; -}; +}