UNPKG

@enterprize/string-formatter

Version:

Formats and validates strings against arbitrary patterns

14 lines (13 loc) 274 B
/** * @version 1.0.0 * @author Giancarlo Dalle Mole * @since 10/02/2020 */ export declare type Token = { pattern?: RegExp; defaultValue?: string; optional?: boolean; recursive?: boolean; transform?: (char: string) => string; escape?: boolean; };