UNPKG

@flex-development/pathe

Version:

Universal drop-in replacement for node:path

20 lines (19 loc) 418 B
/** * @file isURL * @module pathe/lib/isURL */ /** * Check if `value` is a {@linkcode URL} or can be parsed to a `URL`. * * @category * utils * * @this {void} * * @param {unknown} value * The value to check * @return {value is URL | string} * `true` if `value` is a `URL` or can be parsed to a `URL` */ declare function isURL(this: void, value: unknown): value is URL | string; export default isURL;