Files
starface-outlook-sync-addin/node_modules/@jsonjoy.com/util/lib/json-random/string.d.ts
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

8 lines
445 B
TypeScript

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;