minpath.browser.d.ts 1019 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. export namespace minpath {
  2. export { basename };
  3. export { dirname };
  4. export { extname };
  5. export { join };
  6. export let sep: string;
  7. }
  8. /**
  9. * Get the basename from a path.
  10. *
  11. * @param {string} path
  12. * File path.
  13. * @param {string | null | undefined} [extname]
  14. * Extension to strip.
  15. * @returns {string}
  16. * Stem or basename.
  17. */
  18. declare function basename(path: string, extname?: string | null | undefined): string;
  19. /**
  20. * Get the dirname from a path.
  21. *
  22. * @param {string} path
  23. * File path.
  24. * @returns {string}
  25. * File path.
  26. */
  27. declare function dirname(path: string): string;
  28. /**
  29. * Get an extname from a path.
  30. *
  31. * @param {string} path
  32. * File path.
  33. * @returns {string}
  34. * Extname.
  35. */
  36. declare function extname(path: string): string;
  37. /**
  38. * Join segments from a path.
  39. *
  40. * @param {Array<string>} segments
  41. * Path segments.
  42. * @returns {string}
  43. * File path.
  44. */
  45. declare function join(...segments: Array<string>): string;
  46. export {};
  47. //# sourceMappingURL=minpath.browser.d.ts.map