ts-regex-builder
Version:
Maintainable regular expressions for TypeScript and JavaScript.
9 lines (8 loc) • 320 B
TypeScript
import type { EncodedRegex, RegexSequence } from '../types';
/**
* Creates a disjunction (choice of) which matches any of the alternatives.
*
* @param alternatives - Alternatives to choose from.
* @returns Choice of alternatives.
*/
export declare function choiceOf(...alternatives: RegexSequence[]): EncodedRegex;