source: trip-planner-front/node_modules/fast-glob/out/utils/pattern.d.ts@ 59329aa

Last change on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.3 KB
Line 
1import { MicromatchOptions, Pattern, PatternRe } from '../types';
2declare type PatternTypeOptions = {
3 braceExpansion?: boolean;
4 caseSensitiveMatch?: boolean;
5 extglob?: boolean;
6};
7export declare function isStaticPattern(pattern: Pattern, options?: PatternTypeOptions): boolean;
8export declare function isDynamicPattern(pattern: Pattern, options?: PatternTypeOptions): boolean;
9export declare function convertToPositivePattern(pattern: Pattern): Pattern;
10export declare function convertToNegativePattern(pattern: Pattern): Pattern;
11export declare function isNegativePattern(pattern: Pattern): boolean;
12export declare function isPositivePattern(pattern: Pattern): boolean;
13export declare function getNegativePatterns(patterns: Pattern[]): Pattern[];
14export declare function getPositivePatterns(patterns: Pattern[]): Pattern[];
15/**
16 * Returns patterns that can be applied inside the current directory.
17 *
18 * @example
19 * // ['./*', '*', 'a/*']
20 * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
21 */
22export declare function getPatternsInsideCurrentDirectory(patterns: Pattern[]): Pattern[];
23/**
24 * Returns patterns to be expanded relative to (outside) the current directory.
25 *
26 * @example
27 * // ['../*', './../*']
28 * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
29 */
30export declare function getPatternsOutsideCurrentDirectory(patterns: Pattern[]): Pattern[];
31export declare function isPatternRelatedToParentDirectory(pattern: Pattern): boolean;
32export declare function getBaseDirectory(pattern: Pattern): string;
33export declare function hasGlobStar(pattern: Pattern): boolean;
34export declare function endsWithSlashGlobStar(pattern: Pattern): boolean;
35export declare function isAffectDepthOfReadingPattern(pattern: Pattern): boolean;
36export declare function expandPatternsWithBraceExpansion(patterns: Pattern[]): Pattern[];
37export declare function expandBraceExpansion(pattern: Pattern): Pattern[];
38export declare function getPatternParts(pattern: Pattern, options: MicromatchOptions): Pattern[];
39export declare function makeRe(pattern: Pattern, options: MicromatchOptions): PatternRe;
40export declare function convertPatternsToRe(patterns: Pattern[], options: MicromatchOptions): PatternRe[];
41export declare function matchAny(entry: string, patternsRe: PatternRe[]): boolean;
42export {};
Note: See TracBrowser for help on using the repository browser.