Skip to content

Commit

Permalink
Merge branch 'feature/typescript' of https://github.com/Strandor/pars…
Browse files Browse the repository at this point in the history
…e-url into icecubed-fix-normalize-url-default-options
  • Loading branch information
IonicaBizau committed Jun 25, 2021
2 parents 76c974b + 52fe107 commit 74520ff
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
declare interface ParsedUrl {
protocols: string[];
protocol: string;
port?: string;
resource: string;
user: string;
pathname: string;
hash: string;
search: string;
href: string;
query: {
[key: string]: any;
}
}

declare function parseUrl(url: string, normalize?: boolean | Object): ParsedUrl;

export default parseUrl

0 comments on commit 74520ff

Please sign in to comment.