neogma
Version:
Object-Graph-Mapping neo4j framework, Fully-typed with TypeScript, for easy and flexible node and relationship creation
22 lines (21 loc) • 673 B
TypeScript
/**
* provides a sequence of string in order, i.e. 'aaa', 'aab' etc
* warps around when the target is reached
*/
export declare class StringSequence {
private padSize;
private alphabetSize;
private initialNumber;
private currentNumber;
private targetNumber;
constructor(from: string, to: string, padSize?: number, alphabetSize?: number);
getNextString: (
/** throws if the current string if the target one */
throwOnTargetExcceeded?: boolean) => string;
private stringToNumber;
private numberToString;
/**
* pads the string by prepending 'a' at the start of it until the padSize is reached
*/
private pad;
}