tell-me-when
Version:
human relative date and time parser
26 lines • 724 B
TypeScript
export declare class ParseState {
input: string;
index: number;
readonly start: number;
readonly end: number;
readonly flags: string;
constructor(input: string, { start, end, flags, }?: {
/**
* The starting index (defaults to 0)
*/
start?: number;
/**
* The ending index (defaults to input.length)
*/
end?: number;
/**
* Flags to add to all regexes
*/
flags?: string;
});
get done(): boolean;
testLowerCase(pattern: string): boolean;
testRegex(pattern: RegExp): boolean;
}
export declare function toRegExp(s: string, flags?: string): RegExp;
//# sourceMappingURL=ParseState.d.ts.map