exposed number conversion functions

This commit is contained in:
2024-05-29 10:51:11 -04:00
parent a78197cb50
commit 6e02057a97
+17
View File
@@ -199,3 +199,20 @@ export default class linkedInAPIClass {
private resetCookies: boolean;
private helper: any;
}
/**
* Finds the range index for a given number.
*
* @param number The number to find the range index for.
* @returns The corresponding range index as a string.
*/
export function findRangeIndex(number: number): string | -1;
/**
* Converts an array of numbers to a comma-separated string of range indices.
*
* @param nums An array of numbers to convert to range indices.
* @returns A comma-separated string of range indices.
* @throws An error if more than 8 numbers are provided or if any number is invalid.
*/
export function numsToSizes(...nums: number[]): string;