16 lines
432 B
TypeScript
16 lines
432 B
TypeScript
/**
|
|
Generates a Regex+ compatible `pattern`, `flags`, and `options` from a Regex+ AST.
|
|
@param {import('./transform.js').RegexAst} ast
|
|
@param {import('.').OnigurumaToEsOptions} [options]
|
|
@returns {{
|
|
pattern: string;
|
|
flags: string;
|
|
options: Object;
|
|
}}
|
|
*/
|
|
export function generate(ast: import("./transform.js").RegexAst, options?: import(".").OnigurumaToEsOptions): {
|
|
pattern: string;
|
|
flags: string;
|
|
options: any;
|
|
};
|