summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/tldts-core/dist/types/src/extract-hostname.d.ts
blob: 175c251badf515afe5c565478df9dc09311c5372 (plain)
1
2
3
4
5
/**
 * @param url - URL we want to extract a hostname from.
 * @param urlIsValidHostname - hint from caller; true if `url` is already a valid hostname.
 */
export default function extractHostname(url: string, urlIsValidHostname: boolean): string | null;