path-has-prefix.d.ts 364 B

12345678
  1. /**
  2. * Checks if a given path starts with a given prefix. It ensures it matches
  3. * exactly without containing extra chars. e.g. prefix /docs should replace
  4. * for /docs, /docs/, /docs/a but not /docsss
  5. * @param path The path to check.
  6. * @param prefix The prefix to check against.
  7. */
  8. export declare function pathHasPrefix(path: string, prefix: string): boolean;