Files
blog/node_modules/hexo-util/dist/is_external_link.d.ts
2025-07-16 16:30:56 +00:00

10 lines
477 B
TypeScript

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