@wordpress/url
Version:
WordPress URL utilities.
14 lines • 377 B
TypeScript
/**
* Prepends "http://" to a url, if it looks like something that is meant to be a TLD.
*
* @param {string} url The URL to test.
*
* @example
* ```js
* const actualURL = prependHTTP( 'wordpress.org' ); // http://wordpress.org
* ```
*
* @return {string} The updated URL.
*/
export function prependHTTP(url: string): string;
//# sourceMappingURL=prepend-http.d.ts.map