Skip to content

Commit 20b2a6b

Browse files
committed
remove dash from @returns
1 parent 0173f64 commit 20b2a6b

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/clients/client.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class Client {
178178
* Swaps a list of index tuples.
179179
*
180180
* @param params - List of indexes tuples to swap.
181-
* @returns - Promise returning object of the enqueued task
181+
* @returns Promise returning object of the enqueued task
182182
*/
183183
async swapIndexes(params: SwapIndexesParams): Promise<EnqueuedTask> {
184184
const url = '/swap-indexes'
@@ -193,7 +193,7 @@ class Client {
193193
* Get the list of all client tasks
194194
*
195195
* @param parameters - Parameters to browse the tasks
196-
* @returns - Promise returning all tasks
196+
* @returns Promise returning all tasks
197197
*/
198198
async getTasks(parameters: TasksQuery = {}): Promise<TasksResults> {
199199
return await this.tasks.getTasks(parameters)
@@ -203,7 +203,7 @@ class Client {
203203
* Get one task on the client scope
204204
*
205205
* @param taskUid - Task identifier
206-
* @returns - Promise returning a task
206+
* @returns Promise returning a task
207207
*/
208208
async getTask(taskUid: number): Promise<Task> {
209209
return await this.tasks.getTask(taskUid)
@@ -214,7 +214,7 @@ class Client {
214214
*
215215
* @param taskUids - Tasks identifier
216216
* @param waitOptions - Options on timeout and interval
217-
* @returns - Promise returning an array of tasks
217+
* @returns Promise returning an array of tasks
218218
*/
219219
async waitForTasks(
220220
taskUids: number[],
@@ -231,7 +231,7 @@ class Client {
231231
*
232232
* @param taskUid - Task identifier
233233
* @param waitOptions - Options on timeout and interval
234-
* @returns - Promise returning an array of tasks
234+
* @returns Promise returning an array of tasks
235235
*/
236236
async waitForTask(
237237
taskUid: number,

src/indexes.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class Index<T extends Record<string, any> = Record<string, any>> {
226226
* Get the list of all the tasks of the index.
227227
*
228228
* @param parameters - Parameters to browse the tasks
229-
* @returns - Promise containing all tasks
229+
* @returns Promise containing all tasks
230230
*/
231231
async getTasks(parameters: TasksQuery = {}): Promise<TasksResults> {
232232
return await this.tasks.getTasks({ ...parameters, indexUids: [this.uid] })
@@ -236,7 +236,7 @@ class Index<T extends Record<string, any> = Record<string, any>> {
236236
* Get one task of the index.
237237
*
238238
* @param taskUid - Task identifier
239-
* @returns - Promise containing a task
239+
* @returns Promise containing a task
240240
*/
241241
async getTask(taskUid: number): Promise<Task> {
242242
return await this.tasks.getTask(taskUid)
@@ -247,7 +247,7 @@ class Index<T extends Record<string, any> = Record<string, any>> {
247247
*
248248
* @param taskUids - Tasks identifier
249249
* @param waitOptions - Options on timeout and interval
250-
* @returns - Promise containing an array of tasks
250+
* @returns Promise containing an array of tasks
251251
*/
252252
async waitForTasks(
253253
taskUids: number[],
@@ -264,7 +264,7 @@ class Index<T extends Record<string, any> = Record<string, any>> {
264264
*
265265
* @param taskUid - Task identifier
266266
* @param waitOptions - Options on timeout and interval
267-
* @returns - Promise containing an array of tasks
267+
* @returns Promise containing an array of tasks
268268
*/
269269
async waitForTask(
270270
taskUid: number,

src/task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class TaskClient {
6666
* Get tasks
6767
*
6868
* @param parameters - Parameters to browse the tasks
69-
* @returns - Promise containing all tasks
69+
* @returns Promise containing all tasks
7070
*/
7171
async getTasks(parameters: TasksQuery = {}): Promise<TasksResults> {
7272
const url = `tasks`

src/token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function sign(apiKey: string, encodedHeader: string, encodedPayload: string) {
2828
/**
2929
* Create the header of the token.
3030
*
31-
* @returns - The header encoded in base64.
31+
* @returns The header encoded in base64.
3232
*/
3333
function createHeader() {
3434
const header = {

0 commit comments

Comments
 (0)