@automattic/calypso-url
Version:
This library provides both generic and Calypso-specific utilities for handling URLs.
15 lines • 450 B
TypeScript
export declare enum URL_TYPE {
ABSOLUTE = "ABSOLUTE",
SCHEME_RELATIVE = "SCHEME_RELATIVE",
PATH_ABSOLUTE = "PATH_ABSOLUTE",
PATH_RELATIVE = "PATH_RELATIVE",
INVALID = "INVALID"
}
/**
* Determine the type of a URL, with regards to its completeness.
*
* @param url the URL to analyze
* @returns the type of the URL
*/
export declare function determineUrlType(url: string | URL): URL_TYPE;
//# sourceMappingURL=url-type.d.ts.map