Skip to content

Commit

Permalink
chore: Fix TypeScript typings after merging #66
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed May 29, 2019
1 parent 10b6693 commit 5e90ea7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
export as namespace parseDomain;

declare namespace parseDomain {
interface IParseOptions {
customTlds?: RegExp | string[];
privateTlds?: boolean;
}
interface ParseOptions {
customTlds?: RegExp | Array<string>;
privateTlds?: boolean;
}

interface IParsedDomain {
domain?: string;
subdomain?: string;
tld?: string;
}
interface ParsedDomain {
domain: string;
subdomain: string;
tld: string;
}
}

declare function parseDomain (url: string, options?: parseDomain.IParseOptions): parseDomain.IParsedDomain;
declare function parseDomain(url: string, options?: parseDomain.ParseOptions): parseDomain.ParsedDomain | null;

export = parseDomain;

0 comments on commit 5e90ea7

Please sign in to comment.