Skip to content

Commit

Permalink
Merge a6fe72c into 7ec8e5d
Browse files Browse the repository at this point in the history
  • Loading branch information
zekth committed Dec 12, 2021
2 parents 7ec8e5d + a6fe72c commit 5061d85
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ export interface options {
unicodeSupport?: boolean;
domainHost?: boolean;
absolutePath?: boolean;
tolerant?:boolean;
}

export function parse(uri: string, opts?: options): URIComponents;

export function serialize(component: URIComponents): string;
export function serialize(component: URIComponents, opts?: options): string;

export function equal(uriA: string, uriB:string): boolean;

Expand Down
6 changes: 6 additions & 0 deletions index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ import { expectType } from "tsd";

const parsed = uri.parse("foo");
expectType<URIComponents>(parsed);
const parsed2 = uri.parse("foo", {
domainHost: true,
scheme: 'https',
unicodeSupport: false
})
expectType<URIComponents>(parsed2);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "fast-uri",
"version": "0.0.1",
"main": "index.js",
"types": "index.d.ts",
"license": "MIT",
"author": "Vincent Le Goff <vince.legoff@gmail.com> (https://github.com/zekth)",
"scripts": {
Expand Down

0 comments on commit 5061d85

Please sign in to comment.