full site update
This commit is contained in:
23
node_modules/oniguruma-parser/dist/optimizer/optimize.d.ts
generated
vendored
Normal file
23
node_modules/oniguruma-parser/dist/optimizer/optimize.d.ts
generated
vendored
Normal file
@@ -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