File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 33 "version" : " 2.2.1" ,
44 "description" : " Splits an url into sub-domain, domain and effective top-level-domain" ,
55 "main" : " ./lib/parseDomain.js" ,
6+ "types" : " ./lib/index.d.ts" ,
67 "scripts" : {
78 "build" : " run-s build:lib build:tries" ,
89 "build:lib" : " run-s build:lib:clean build:lib:babel" ,
Original file line number Diff line number Diff line change 1+ export as namespace parseDomain ;
2+
3+ declare namespace parseDomain {
4+ interface IParseOptions {
5+ customTlds ?: RegExp | string [ ] ;
6+ privateTlds ?: boolean ;
7+ }
8+
9+ interface IParsedDomain {
10+ domain ?: string ;
11+ subdomain ?: string ;
12+ tld ?: string ;
13+ }
14+ }
15+
16+ declare function parseDomain ( url : string , options ?: parseDomain . IParseOptions ) : parseDomain . IParsedDomain ;
17+
18+ export = parseDomain ;
You can’t perform that action at this time.
0 commit comments