Is there a way to import FileHandle across stable Node.js versions?
I mean in Node.js v14 an v16 following code works fine
import { FileHandle } from "fs/promises";
but in Node.js v12 it doesn't work, so I tried with
import { promises } from "fs";
const { FileHandle } = promises;
but this doesn't work on Node.js v16.
According with Node.js Release v12 is still supported.
So: how can I import FileHandle in a package and make the package compliant with all supported Node.js versions?