kjelsrud.dev/node_modules/@mdx-js/mdx/lib/util/extnames-to-regex.d.ts
2023-07-19 21:31:30 +02:00

9 lines
254 B
TypeScript

/**
* Utility to turn a list of extnames (*with* dots) into an expression.
*
* @param {Array<string>} extnames
* List of extnames.
* @returns {RegExp}
* Regex matching them.
*/
export function extnamesToRegex(extnames: Array<string>): RegExp;