import { dirname, basename, normalize } from 'node:path';
import { fileURLToPath } from 'node:url';
/** @import { PathLike } from 'node:fs'; */
+/** @import { FileHandle } from 'node:fs/promises'; */
/**
* Parse and normalize a `PathLike` object into a string.
rows: 0,
done: false
};
+ /** @type FileHandle */
let handle;
super({
async start() {
// User locale's decimal separator
-const DECIMAL_SEPARATOR = /** @type {Intl.NumberFormatPart!} */(Intl.NumberFormat().formatToParts(.1).find(p => p.type === 'decimal')).value;
+const DECIMAL_SEPARATOR = Intl.NumberFormat().formatToParts(.1).find(p => p.type === 'decimal').value;
/**
* Convert a string to camelCase.