@crowdin/crowdin-api-client
Advanced tools
Comparing version 1.11.0 to 1.11.1
@@ -118,3 +118,3 @@ import { RetryConfig, RetryService } from './internal/retry'; | ||
}, maxAmount?: number): Promise<ResponseList<T>>; | ||
protected get<T = any>(url: string, config?: { | ||
protected get<T>(url: string, config?: { | ||
headers: any; | ||
@@ -121,0 +121,0 @@ }): Promise<T>; |
@@ -14,5 +14,5 @@ export interface RetryConfig { | ||
* | ||
* @param func function to execute (should return {@link promise}) | ||
* @param func function to execute | ||
*/ | ||
executeAsyncFunc(func: Function): Promise<any>; | ||
executeAsyncFunc<T>(func: () => Promise<T>): Promise<T>; | ||
/** | ||
@@ -22,4 +22,4 @@ * | ||
*/ | ||
executeSyncFunc(func: Function): Promise<any>; | ||
executeSyncFunc<T>(func: () => T): Promise<T>; | ||
private wait; | ||
} |
@@ -19,3 +19,3 @@ "use strict"; | ||
* | ||
* @param func function to execute (should return {@link promise}) | ||
* @param func function to execute | ||
*/ | ||
@@ -37,2 +37,3 @@ executeAsyncFunc(func) { | ||
} | ||
throw new Error('Wrong retry configuration. Failed to retrieve value.'); | ||
}); | ||
@@ -59,2 +60,3 @@ } | ||
} | ||
throw new Error('Wrong retry configuration. Failed to retrieve value.'); | ||
}); | ||
@@ -61,0 +63,0 @@ } |
@@ -74,2 +74,3 @@ import { BooleanInt, CrowdinApi, PatchRequest, ResponseList, ResponseObject } from '../core'; | ||
maxLength?: number; | ||
labelIds?: number[]; | ||
} | ||
@@ -76,0 +77,0 @@ interface PluralText { |
@@ -59,2 +59,3 @@ import { BooleanInt, CrowdinApi, DownloadLink, PatchRequest, ResponseList, ResponseObject } from '../core'; | ||
progress: Progress; | ||
translateProgress: Progress; | ||
sourceLanguageId: string; | ||
@@ -61,0 +62,0 @@ targetLanguageId: string; |
{ | ||
"name": "@crowdin/crowdin-api-client", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"description": "JavaScript library for Crowdin API v2.", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
267540
6697