ensure-leading-slash.d.ts 225 B

12345
  1. /**
  2. * For a given page path, this function ensures that there is a leading slash.
  3. * If there is not a leading slash, one is added, otherwise it is noop.
  4. */
  5. export declare function ensureLeadingSlash(path: string): string;