Skip to content

Commit 74520ff

Browse files
committed
Merge branch 'feature/typescript' of https://github.com/Strandor/parse-url into icecubed-fix-normalize-url-default-options
2 parents 76c974b + 52fe107 commit 74520ff

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

lib/index.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
declare interface ParsedUrl {
2+
protocols: string[];
3+
protocol: string;
4+
port?: string;
5+
resource: string;
6+
user: string;
7+
pathname: string;
8+
hash: string;
9+
search: string;
10+
href: string;
11+
query: {
12+
[key: string]: any;
13+
}
14+
}
15+
16+
declare function parseUrl(url: string, normalize?: boolean | Object): ParsedUrl;
17+
18+
export default parseUrl

0 commit comments

Comments
 (0)