mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 22:44:18 +08:00
21 lines
611 B
TypeScript
21 lines
611 B
TypeScript
// Type definitions for bases 0.2.1
|
|
// Project: https://github.com/aseemk/bases.js
|
|
// Definitions by: Hari Krishna <https://github.com/harikv>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export function toAlphabet(num: number, alphabet: string): string;
|
|
|
|
export function fromAlphabet(str: string, alphabet: string): number;
|
|
|
|
export function toBase(num: number, base: number): string;
|
|
|
|
export function fromBase(str: string, base:number): number;
|
|
|
|
export let KNOWN_ALPHABETS: any;
|
|
|
|
export let NUMERALS: string;
|
|
|
|
export let LETTERS_LOWERCASE: string;
|
|
|
|
export let LETTERS_UPPERCASE: string;
|