Skip to content

Commit 43423f8

Browse files
Refactor
1 parent 23d9bcf commit 43423f8

File tree

1 file changed

+18
-25
lines changed

1 file changed

+18
-25
lines changed

src/structs/2captcha.ts

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ export interface paramsHCaptcha {
4545

4646
// FixMe:data[key] - how to send this parameter
4747
export interface paramsFunCaptcha {
48-
publickey: string,
49-
pageurl: string,
50-
surl?: string,
51-
header_acao?: boolean,
52-
pingback?: string,
53-
proxy?: string,
54-
proxytype?: string,
55-
userAgent?: string,
56-
data?: string
48+
publickey: string,
49+
pageurl: string,
50+
surl?: string,
51+
header_acao?: boolean,
52+
pingback?: string,
53+
proxy?: string,
54+
proxytype?: string,
55+
userAgent?: string,
56+
data?: string
5757
}
5858

5959
export interface paramsImageCaptcha {
@@ -414,7 +414,7 @@ export class Solver {
414414
}
415415

416416
/**
417-
* Solves a hCaptcha, returning the result as a string.
417+
* ### Solves a hCaptcha
418418
*
419419
* [Read more about other hCaptcha parameters](https://2captcha.com/2captcha-api#solving_hcaptcha).
420420
*
@@ -468,7 +468,9 @@ export class Solver {
468468
}
469469

470470
/**
471-
* Solves a GeeTest Captcha. [Read more about parameters and solving for Geetest captcha](https://2captcha.com/2captcha-api#solving_geetest).
471+
* ### Solves a GeeTest Captcha.
472+
*
473+
* [Read more about parameters and solving for Geetest captcha](https://2captcha.com/2captcha-api#solving_geetest).
472474
*
473475
* @param {{ gt, challenge, api_server, offline, new_captcha,
474476
* pageurl, pingback, proxy, proxytype, userAgent }} params
@@ -545,7 +547,6 @@ export class Solver {
545547
/**
546548
* ### Solves a GeeTest V4 Captcha.
547549
*
548-
*
549550
* This method accepts an object with the following fields: `pageurl`, `captcha_id`, `pingback`, `proxy`, `proxytype`, `userAgent`.
550551
* The `pageurl` and `captcha_id` fields are required.
551552
*
@@ -597,7 +598,8 @@ export class Solver {
597598
}
598599

599600
/**
600-
* Method for sending Yandex Smart Captcha.
601+
* ### Method for sending Yandex Smart Captcha.
602+
*
601603
* This method accepts an object with the following fields: `pageurl`, `sitekey`, `pingback`, `proxy`, `proxytype`.
602604
* The `pageurl` and `sitekey` fields are required.
603605
*
@@ -649,7 +651,9 @@ export class Solver {
649651
}
650652

651653
/**
652-
* Solves a image-based captcha. [Read more about parameters for image captcha](https://2captcha.com/2captcha-api#solving_normal_captcha).
654+
* ### Solves a image-based captcha.
655+
*
656+
* [Read more about parameters for image captcha](https://2captcha.com/2captcha-api#solving_normal_captcha).
653657
*
654658
* @param {{ body,
655659
* phrase,
@@ -1000,17 +1004,6 @@ export class Solver {
10001004
}
10011005
}
10021006

1003-
/**
1004-
* pageurl: string,
1005-
captchakey: string,
1006-
api_server?: string,
1007-
version?: string,
1008-
header_acao?: boolean,
1009-
pingback?: string,
1010-
proxy?: string,
1011-
proxytype?: string,
1012-
*/
1013-
10141007
/**
10151008
* ### Solves Capy Puzzle captcha
10161009
*

0 commit comments

Comments
 (0)