@flex-development/pathe
Version:
Universal drop-in replacement for node:path
23 lines (22 loc) • 498 B
text/typescript
/**
* @file isDeviceRoot
* @module pathe/lib/isDeviceRoot
*/
import type { DeviceRoot } from '@flex-development/pathe';
/**
* Check if `value` is a device root.
*
* @see {@linkcode DeviceRoot}
*
* @category
* utils
*
* @this {void}
*
* @param {unknown} value
* The value to check
* @return {value is DeviceRoot}
* `true` if `value` is device root, `false` otherwise
*/
declare function isDeviceRoot(this: void, value: unknown): value is DeviceRoot;
export default isDeviceRoot;