> ## Documentation Index
> Fetch the complete documentation index at: https://generaltranslation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# UserPaginator

उपयोगकर्ताओं के लिए पेजिनेटर

<div id="hierarchy">
  ## पदानुक्रम
</div>

* [`Paginator`](/hi/xdks/typescript/reference/classes/Paginator)\<`any`>

  ↳ **`UserPaginator`**

<div id="constructors">
  ## कंस्ट्रक्टर्स
</div>

<div id="constructor">
  ### constructor
</div>

• **new UserPaginator**(`fetchPage`): [`UserPaginator`](/hi/xdks/typescript/reference/classes/UserPaginator)

एक नया पेजिनेटर instance बनाता है।

<div id="parameters">
  #### पैरामीटर
</div>

| नाम         | Type                                                                                                                          | विवरण                                                             |
| :---------- | :---------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------- |
| `fetchPage` | (`token?`: `string`) => `Promise`\<[`PaginatedResponse`](/hi/xdks/typescript/reference/interfaces/PaginatedResponse)\<`any`>> | वह फ़ंक्शन जो pagination token दिए जाने पर डेटा का एक पेज लाता है |

<div id="returns">
  #### रिटर्न
</div>

[`UserPaginator`](/hi/xdks/typescript/reference/classes/UserPaginator)

#### इनहेरिट किया गया

[Paginator](/hi/xdks/typescript/reference/classes/Paginator).[constructor](/hi/xdks/typescript/reference/classes/Paginator#constructor)

#### में परिभाषित

[paginator.ts:90](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L90)

<div id="accessors">
  ## एक्सेसर
</div>

<div id="items">
  ### items
</div>

• `get` **items**(): `T`\[]

सभी प्राप्त आइटम लौटाता है

<div id="returns">
  #### रिटर्न
</div>

`T`\[]

#### इससे इनहेरिट किया गया

Paginator.items

#### में परिभाषित

[paginator.ts:97](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L97)

***

<div id="meta">
  ### meta
</div>

• `get` **meta**(): `any`

वर्तमान पेजिनेशन मेटाडेटा प्राप्त करता है

<div id="returns">
  #### रिटर्न
</div>

`any`

#### इससे इनहेरिट किया गया

Paginator.meta

#### में परिभाषित

[paginator.ts:104](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L104)

***

<div id="includes">
  ### includes
</div>

• `get` **includes**(): `undefined` | `Record`\<`string`, `any`>

वर्तमान includes डेटा लौटाता है

<div id="returns">
  #### रिटर्न
</div>

`undefined` | `Record`\<`string`, `any`>

#### इनसे इनहेरिट किया गया

Paginator.includes

<div id="defined-in">
  #### में परिभाषित है
</div>

[paginator.ts:111](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L111)

***

<div id="errors">
  ### errors
</div>

• `get` **errors**(): `undefined` | `any`\[]

वर्तमान errors प्राप्त करता है

<div id="returns">
  #### रिटर्न
</div>

`undefined` | `any`\[]

#### इनहेरिट किया गया

Paginator.errors

#### में परिभाषित

[paginator.ts:118](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L118)

***

<div id="done">
  ### done
</div>

• `get` **done**(): `boolean`

जांचें कि पेजिनेशन पूरा हो चुका है या नहीं

<div id="returns">
  #### रिटर्न
</div>

`boolean`

#### इससे इनहेरिट किया गया

Paginator.done

#### में परिभाषित

[paginator.ts:125](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L125)

***

<div id="ratelimited">
  ### rateLimited
</div>

• `get` **rateLimited**(): `boolean`

जाँचें कि क्या रेट लिमिट लागू हो गई थी

<div id="returns">
  #### रिटर्न
</div>

`boolean`

#### इससे इनहेरिट किया गया

Paginator.rateLimited

#### में परिभाषित

[paginator.ts:132](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L132)

***

<div id="users">
  ### users
</div>

• `get` **users**(): `any`\[]

<div id="returns">
  #### रिटर्न
</div>

`any`\[]

#### में परिभाषित

[paginator.ts:351](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L351)

<div id="methods">
  ## मेथड
</div>

<div id="fetchnext">
  ### fetchNext
</div>

▸ **fetchNext**(): `Promise`\<`void`>

अगला पेज फ़ेच करें और आइटम को मौजूदा instance में जोड़ें

यह method डेटा का अगला पेज फ़ेच करता है और आइटम को मौजूदा पेजिनेटर instance में जोड़ता है। यह pagination state और metadata को अपडेट करता है।

<div id="returns">
  #### रिटर्न
</div>

`Promise`\<`void`>

**`उदाहरण`**

```typescript theme={null}
const followers = await client.users.getFollowers('783214');
await followers.fetchNext(); // पहला पेज प्राप्त करें
console.log(followers.items.length); // फ़ॉलोअर्स की संख्या

if (!followers.done) {
  await followers.fetchNext(); // दूसरा पेज प्राप्त करें
  console.log(followers.items.length); // सभी पेजों में कुल फ़ॉलोअर्स
}
```

**`Throws`**

जब API अनुरोध विफल हो जाए

#### इससे इनहेरिट किया गया

[Paginator](/hi/xdks/typescript/reference/classes/Paginator).[fetchNext](/hi/xdks/typescript/reference/classes/Paginator#fetchnext)

#### में परिभाषित

[paginator.ts:156](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L156)

***

<div id="next">
  ### next
</div>

▸ **next**(): `Promise`\<[`Paginator`](/hi/xdks/typescript/reference/classes/Paginator)\<`any`>>

अगला पेज नए instance के रूप में प्राप्त करें

यह method एक नया पेजिनेटर instance बनाती है, जो अगले पेज से शुरू होता है,
और वर्तमान पेजिनेटर की state को प्रभावित नहीं करती।

<div id="returns">
  #### रिटर्न
</div>

`Promise`\<[`Paginator`](/hi/xdks/typescript/reference/classes/Paginator)\<`any`>>

अगले पेज के लिए नया पेजिनेटर इंस्टेंस

**`Example`**

```typescript theme={null}
const followers = await client.users.getFollowers('783214');
await followers.fetchNext(); // पहला पृष्ठ प्राप्त करें

if (!followers.done) {
  const nextPage = await followers.next(); // नए इंस्टेंस के रूप में अगला पृष्ठ प्राप्त करें
  console.log(followers.items.length); // अभी भी पहला पृष्ठ
  console.log(nextPage.items.length); // दूसरा पृष्ठ
}
```

<div id="inherited-from">
  #### इससे इनहेरिट किया गया है
</div>

[Paginator](/hi/xdks/typescript/reference/classes/Paginator).[next](/hi/xdks/typescript/reference/classes/Paginator#next)

#### में परिभाषित

[paginator.ts:211](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L211)

***

<div id="fetchprevious">
  ### fetchPrevious
</div>

▸ **fetchPrevious**(): `Promise`\<`void`>

पिछला पेज प्राप्त करता है (यदि समर्थित हो)

<div id="returns">
  #### रिटर्न
</div>

`Promise`\<`void`>

<div id="inherited-from">
  #### इससे इनहेरिट किया गया है
</div>

[Paginator](/hi/xdks/typescript/reference/classes/Paginator).[fetchPrevious](/hi/xdks/typescript/reference/classes/Paginator#fetchprevious)

#### में परिभाषित

[paginator.ts:225](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L225)

***

<div id="previous">
  ### previous
</div>

▸ **previous**(): `Promise`\<[`Paginator`](/hi/xdks/typescript/reference/classes/Paginator)\<`any`>>

पिछला पेज नए इंस्टेंस के रूप में प्राप्त करें

<div id="returns">
  #### रिटर्न
</div>

`Promise`\<[`Paginator`](/hi/xdks/typescript/reference/classes/Paginator)\<`any`>>

#### इनहेरिट किया गया

[Paginator](/hi/xdks/typescript/reference/classes/Paginator).[previous](/hi/xdks/typescript/reference/classes/Paginator#previous)

#### में परिभाषित

[paginator.ts:260](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L260)

***

<div id="fetchlast">
  ### fetchLast
</div>

▸ **fetchLast**(`count`): `Promise`\<`void`>

निर्दिष्ट संख्या तक अतिरिक्त आइटम फ़ेच करें

<div id="parameters">
  #### पैरामीटर
</div>

| नाम     | Type     |
| :------ | :------- |
| `count` | `number` |

<div id="returns">
  #### रिटर्न
</div>

`Promise`\<`void`>

#### इससे इनहेरिट किया गया

[Paginator](/hi/xdks/typescript/reference/classes/Paginator).[fetchLast](/hi/xdks/typescript/reference/classes/Paginator#fetchlast)

#### में परिभाषित

[paginator.ts:274](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L274)

***

<div id="reset">
  ### reset
</div>

▸ **reset**(): `void`

पेजिनेटर को उसकी आरंभिक स्थिति में रीसेट करें

<div id="returns">
  #### रिटर्न
</div>

`void`

#### इनहेरिट किया गया

[Paginator](/hi/xdks/typescript/reference/classes/Paginator).[reset](/hi/xdks/typescript/reference/classes/Paginator#reset)

#### में परिभाषित

[paginator.ts:288](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L288)

***

<div id="iterator">
  ### \[iterator]
</div>

▸ **\[iterator]**(): `Iterator`\<`any`, `any`, `undefined`>

सभी प्राप्त आइटम के लिए इटरेटर

<div id="returns">
  #### रिटर्न
</div>

`Iterator`\<`any`, `any`, `undefined`>

<div id="inherited-from">
  #### इससे इनहेरिट किया गया है
</div>

[Paginator](/hi/xdks/typescript/reference/classes/Paginator).[\[iterator\]](Paginator.md#\[iterator])

#### में परिभाषित

[paginator.ts:303](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L303)

***

<div id="asynciterator">
  ### \[asyncIterator]
</div>

▸ **\[asyncIterator]**(): `AsyncIterator`\<`any`, `any`, `undefined`>

ऐसा Async iterator जो पेजों को अपने-आप फ़ेच करता है

<div id="returns">
  #### रिटर्न
</div>

`AsyncIterator`\<`any`, `any`, `undefined`>

#### से इनहेरिट किया गया

[Paginator](/hi/xdks/typescript/reference/classes/Paginator).[\[asyncIterator\]](Paginator.md#\[asynciterator])

#### में परिभाषित

[paginator.ts:312](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/paginator.ts#L312)
