the editable site (validation-lab)
This commit is contained in:
commit
3ac81d5a52
13454 files changed
+2227005
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
import type { OnigurumaRegex } from '../generator/generate.js';
|
||||
import type { OptimizationName } from './optimizations.js';
|
||||
type OptimizationStates = {
|
||||
[key in OptimizationName]: boolean;
|
||||
};
|
||||
type OptimizeOptions = {
|
||||
flags?: string;
|
||||
override?: Partial<OptimizationStates>;
|
||||
rules?: {
|
||||
allowOrphanBackrefs?: boolean;
|
||||
captureGroup?: boolean;
|
||||
singleline?: boolean;
|
||||
};
|
||||
};
|
||||
/**
|
||||
Returns an optimized Oniguruma pattern and flags.
|
||||
*/
|
||||
declare function optimize(pattern: string, options?: OptimizeOptions): OnigurumaRegex;
|
||||
declare function getOptionalOptimizations(options?: {
|
||||
disable?: boolean;
|
||||
}): OptimizationStates;
|
||||
export { type OptimizeOptions, getOptionalOptimizations, optimize, };
|
||||
//# sourceMappingURL=optimize.d.ts.map
|
||||
Reference in new issue
Block a user