Skip to content

Commit d28a2cd

Browse files
types fix
1 parent 992887f commit d28a2cd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/structs/2captcha.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ export interface paramsBoundingBox {
225225
export interface paramsGrid {
226226
body: string,
227227
recaptcha: 1,
228-
rows?: number
229-
cols?: number
228+
rows?: number,
229+
cols?: number,
230230
minСlicks?: number,
231231
maxСlicks?: number,
232232
previousId?: string,
@@ -369,7 +369,7 @@ export class Solver {
369369
* @param {string} params.datas Value of `data-s` parameter you found on page. Curenttly applicable for Google Search and other Google services.
370370
* @param {string} params.pingback URL for pingback (callback) response that will be sent when captcha is solved. URL should be registered on the server. [More info here](https://2captcha.com/2captcha-api#pingback).
371371
* @param {string} params.action Value of `action` parameter you found on page.
372-
* @param {string} params.enterprise `1` - defines that you're sending reCAPTCHA Enterpise.
372+
* @param {number} params.enterprise `1` - defines that you're sending reCAPTCHA Enterpise.
373373
* @param {number} params.min_score The score needed for resolution reCAPTCHA V3. Currently it's almost impossible to get token with score higher than `0.3`
374374
* @param {string} params.version `v2` — defines that you're sending a reCAPTCHA V2. `v3` — defines that you're sending a reCAPTCHA V3.
375375
* @param {string} params.domain Domain used to load the captcha: `google.com` or `recaptcha.net`
@@ -666,7 +666,7 @@ export class Solver {
666666
* lang,
667667
* textinstructions,
668668
* pingback }} params Extra properties to pass to 2captcha.
669-
* @param {number} params.body Base64 image data for the captcha.
669+
* @param {string} params.body Base64 image data for the captcha.
670670
* @param {number} params.phrase Captcha contains two or more words? `1` - Yes. `0` - No.
671671
* @param {number} params.regsense Captcha is case sensitive? `1` - Yes. `0` - No.
672672
* @param {number} params.numeric `0` - not specified. `1` - captcha contains only numbers. `2` - captcha contains only letters. `3` - captcha contains only numbers OR only letters. `4` - captcha MUST contain both numbers AND letters.
@@ -1304,9 +1304,9 @@ public async friendlyCaptcha(params: friendlyCaptcha): Promise<CaptchaAnswer> {
13041304
* ### Bounding Box Method
13051305
*
13061306
* @param {{ image, textinstructions, imginstructions }} params Parameters Bounding Box Method as an object.
1307-
* @param {image} params.image Image containing data for markup. The image must be encoded in `Base64` format.
1308-
* @param {textinstructions} params.textinstructions Text will be shown to worker to help him to select object on the image correctly. For example: "*Select cars in the image*". **Optional parameter**, if the instruction already exists in the form of the `imginstructions`.
1309-
* @param {imginstructions} params.imginstructions Image with instruction for worker to help him to select object on the image correctly. The image must be encoded in `Base64` format. **Optional parameter**, if the instruction already exists in the form of the `textinstructions`.
1307+
* @param {string} params.image Image containing data for markup. The image must be encoded in `Base64` format.
1308+
* @param {string} params.textinstructions Text will be shown to worker to help him to select object on the image correctly. For example: "*Select cars in the image*". **Optional parameter**, if the instruction already exists in the form of the `imginstructions`.
1309+
* @param {string} params.imginstructions Image with instruction for worker to help him to select object on the image correctly. The image must be encoded in `Base64` format. **Optional parameter**, if the instruction already exists in the form of the `textinstructions`.
13101310
*
13111311
* @example
13121312
* solver.boundingBox({

0 commit comments

Comments
 (0)