You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

7 lines
445 B

export type Token = TokenLiteral | TokenPick | TokenRepeat | TokenRange | TokenList;
export type TokenLiteral = string;
export type TokenPick = [type: 'pick', from: string[]];
export type TokenRepeat = [type: 'repeat', min: number, max: number, pattern: Token];
export type TokenRange = [type: 'range', min: number, max: number];
export type TokenList = [type: 'list', what: Token[]];
export declare function randomString(token: Token): string;