You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
739 B

1 month ago
  1. import { Pattern } from '../types';
  2. /**
  3. * Designed to work only with simple paths: `dir\\file`.
  4. */
  5. export declare function unixify(filepath: string): string;
  6. export declare function makeAbsolute(cwd: string, filepath: string): string;
  7. export declare function removeLeadingDotSegment(entry: string): string;
  8. export declare const escape: typeof escapeWindowsPath;
  9. export declare function escapeWindowsPath(pattern: Pattern): Pattern;
  10. export declare function escapePosixPath(pattern: Pattern): Pattern;
  11. export declare const convertPathToPattern: typeof convertWindowsPathToPattern;
  12. export declare function convertWindowsPathToPattern(filepath: string): Pattern;
  13. export declare function convertPosixPathToPattern(filepath: string): Pattern;