parsePath(path): Partial<Path>
Parses a string URL path into its separate pathname, search, and hash components.