(value: bigint)
| 49 | // Node fills bigint stats from a BigInt64Array, so unsigned 64-bit values such |
| 50 | // as dev_t and ino_t at or above 2^63 are reported as negative. |
| 51 | const toUint64 = (value: bigint): bigint => BigInt.asUintN(64, value) |
| 52 | |
| 53 | const toUint64Option = (value: bigint | undefined): Option.Option<bigint> => |
| 54 | Option.map(Option.fromNullishOr(value), toUint64) |