UNPKG

archunit

Version:

ArchUnit TypeScript is an architecture testing library, to specify and assert architecture rules in your TypeScript app

27 lines (26 loc) 1.14 kB
import { Filter, Pattern, PatternOptions } from './type'; /** * Helper function to extract readable pattern strings from regex * This function formats regex patterns for display purposes by removing excessive escaping */ export declare function getPatternString(pattern: RegExp): string; export declare class RegexFactory { private static escapeRegex; private static globToRegExp; private static patternToRegExp; private static toPatternArray; private static isTargetedExclusion; private static createSimpleFilter; private static createFilter; private static createExclusionFilters; private static getDefaultExclusionTargets; static fileNameMatcher(name: Pattern, options?: PatternOptions): Filter; static classNameMatcher(name: Pattern, options?: PatternOptions): Filter; static folderMatcher(folder: Pattern, options?: PatternOptions): Filter; static pathMatcher(path: Pattern, options?: PatternOptions): Filter; /** * Creates a filter for exact file path matching * @param filePath Exact file path to match */ static exactFileMatcher(filePath: string): Filter; }