@wordpress/url
Version:
WordPress URL utilities.
16 lines • 433 B
TypeScript
/**
* Prepends "https://" to a url, if it looks like something that is meant to be a TLD.
*
* Note: this will not replace "http://" with "https://".
*
* @param url The URL to test.
*
* @example
* ```js
* const actualURL = prependHTTPS( 'wordpress.org' ); // https://wordpress.org
* ```
*
* @return The updated URL.
*/
export declare function prependHTTPS(url: string): string;
//# sourceMappingURL=prepend-https.d.ts.map