UNPKG

476 BTypeScriptView Raw
1/**
2 * Check whether the link is external
3 * @param {String} input The url to check
4 * @param {String} input The hostname / url of website
5 * @param {Array} input Exclude hostnames. Specific subdomain is required when applicable, including www.
6 * @returns {Boolean} True if the link doesn't have protocol or link has same host with config.url
7 */
8declare function isExternalLink(input: string, sitehost: string, exclude: string[]): boolean;
9export = isExternalLink;