parse-path.d.ts 320 B

12345678910
  1. /**
  2. * Given a path this function will find the pathname, query and hash and return
  3. * them. This is useful to parse full paths on the client side.
  4. * @param path A path to parse e.g. /foo/bar?id=1#hash
  5. */
  6. export declare function parsePath(path: string): {
  7. pathname: string;
  8. query: string;
  9. hash: string;
  10. };