@wordpress/block-library
Version:
Block library for the WordPress editor.
10 lines • 383 B
TypeScript
/**
* Returns whether a Social Icon's link looks valid: a URL, with or without
* its protocol, or an email address for the Mail icon. It uses the same check
* as the link popover, and an empty link is valid.
*
* @param url The link.
* @return Whether the link is valid.
*/
export default function isValidLink(url?: string): boolean;
//# sourceMappingURL=is-valid-link.d.ts.map