path.d.ts 739 B

12345678910111213
  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;