Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

pattern.d.ts 1.7KB

12345678910111213141516171819202122232425
  1. import { MicromatchOptions, Pattern, PatternRe } from '../types';
  2. declare type PatternTypeOptions = {
  3. braceExpansion?: boolean;
  4. caseSensitiveMatch?: boolean;
  5. extglob?: boolean;
  6. };
  7. export declare function isStaticPattern(pattern: Pattern, options?: PatternTypeOptions): boolean;
  8. export declare function isDynamicPattern(pattern: Pattern, options?: PatternTypeOptions): boolean;
  9. export declare function convertToPositivePattern(pattern: Pattern): Pattern;
  10. export declare function convertToNegativePattern(pattern: Pattern): Pattern;
  11. export declare function isNegativePattern(pattern: Pattern): boolean;
  12. export declare function isPositivePattern(pattern: Pattern): boolean;
  13. export declare function getNegativePatterns(patterns: Pattern[]): Pattern[];
  14. export declare function getPositivePatterns(patterns: Pattern[]): Pattern[];
  15. export declare function getBaseDirectory(pattern: Pattern): string;
  16. export declare function hasGlobStar(pattern: Pattern): boolean;
  17. export declare function endsWithSlashGlobStar(pattern: Pattern): boolean;
  18. export declare function isAffectDepthOfReadingPattern(pattern: Pattern): boolean;
  19. export declare function expandPatternsWithBraceExpansion(patterns: Pattern[]): Pattern[];
  20. export declare function expandBraceExpansion(pattern: Pattern): Pattern[];
  21. export declare function getPatternParts(pattern: Pattern, options: MicromatchOptions): Pattern[];
  22. export declare function makeRe(pattern: Pattern, options: MicromatchOptions): PatternRe;
  23. export declare function convertPatternsToRe(patterns: Pattern[], options: MicromatchOptions): PatternRe[];
  24. export declare function matchAny(entry: string, patternsRe: PatternRe[]): boolean;
  25. export {};