UNPKG

archunit

Version:

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

20 lines (19 loc) 751 B
import { Filter, Pattern } 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; static fileNameMatcher(name: Pattern): Filter; static classNameMatcher(name: Pattern): Filter; static folderMatcher(folder: Pattern): Filter; static pathMatcher(path: Pattern): Filter; /** * Creates a filter for exact file path matching * @param filePath Exact file path to match */ static exactFileMatcher(filePath: string): Filter; }