-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Fix TypeScript typings after merging #66
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |