@wordpress/url
Version:
WordPress URL utilities.
15 lines • 478 B
TypeScript
/**
* Checks for invalid characters within the provided authority.
*
* @param authority A string containing the URL authority.
*
* @example
* ```js
* const isValid = isValidAuthority( 'wordpress.org' ); // true
* const isNotValid = isValidAuthority( 'wordpress#org' ); // false
* ```
*
* @return True if the argument contains a valid authority.
*/
export declare function isValidAuthority(authority: string): boolean;
//# sourceMappingURL=is-valid-authority.d.ts.map