Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
No EOL
612 B
Text
23 lines
No EOL
612 B
Text
/**
|
|
* Returns true iff the domain of hostname matches.
|
|
*
|
|
* Examples:
|
|
*
|
|
* ``` js
|
|
* dnsDomainIs("www.netscape.com", ".netscape.com")
|
|
* // is true.
|
|
*
|
|
* dnsDomainIs("www", ".netscape.com")
|
|
* // is false.
|
|
*
|
|
* dnsDomainIs("www.mcom.com", ".netscape.com")
|
|
* // is false.
|
|
* ```
|
|
*
|
|
*
|
|
* @param {String} host is the hostname from the URL.
|
|
* @param {String} domain is the domain name to test the hostname against.
|
|
* @return {Boolean} true iff the domain of the hostname matches.
|
|
*/
|
|
export default function dnsDomainIs(host: string, domain: string): boolean;
|
|
//# sourceMappingURL=dnsDomainIs.d.ts.map |