Files
babel/lib/regexpu-core.d.ts
2023-02-20 11:43:04 +01:00

20 lines
590 B
TypeScript

declare module "regexpu-core" {
type RegexpuOptions = {
unicodeFlag?: "transform" | false;
unicodeSetsFlag?: "transform" | "parse" | false;
dotAllFlag?: "transform" | false;
unicodePropertyEscapes?: "transform" | false;
namedGroups?: "transform" | false;
onNamedGroup?: (name: string, index: number) => void;
modifiers?: "transform" | false;
onNewFlags?: (name: string) => void;
};
function rewritePattern(
pattern: string,
flags: string,
options: RegexpuOptions
): string;
export default rewritePattern;
export { RegexpuOptions };
}