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