Installation
npm install --save @types/parse-path
Summary
This package contains type definitions for parse-path (https://github.com/IonicaBizau/parse-path).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-path.
declare namespace parsePath {
type Protocol = "http" | "https" | "ssh" | "file" | "git";
interface ParsedPath {
hash: string;
host: string;
href: string;
password: string;
parse_failed: boolean;
pathname: string;
port: string;
protocol: Protocol;
protocols: Protocol[];
query: Record<string, string>;
resource: string;
search: string;
user: string;
}
}
declare function parsePath(url: string): parsePath.ParsedPath;
export = parsePath;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Florian Keller.