UNPKG

base62-ts

Version:

Custom Base-62 Encoder in TypeScript

15 lines (14 loc) 366 B
/** * Base62 expects its string representation at instantiation */ export declare class Base62 { str: string; val: number | undefined; constructor(str: string); toBuffer(): Buffer; toString(): string; /** * @returns the value associated with the base62 string representation if any, or `-1` if undefined */ value(): number; }