-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
31 lines (28 loc) · 804 Bytes
/
index.d.ts
File metadata and controls
31 lines (28 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
declare module "base26" {
/**
* Increment alpha num times
* @param {string} alpha
* @param {number} num
* @returns {string}
*/
function add(alpha: string, num: number): string;
/**
* Decrement alpha num times. Function throws if the result is not positive.
* @param {string} alpha
* @param {number} num
* @returns {string}
*/
function subtract(alpha: string, num: number): string;
/**
* Convert number comprised of lowercase a-z alphabetical digits to the equivalent base10 number
* @param {string} alpha
* @returns {number}
*/
function from(alpha: string): number;
/**
* Convert positive base10 number (> 0) to alphabetical digits
* @param {number} decimal
* @returns {string}
*/
function to(decimal: number): string;
}