Hey, I'm looking for a single TypeScript type that is compatible between node:fs/promises and memfs. For example this does not work:
import * as Fs from 'node:fs/promises'
import * as Memfs from 'memfs'
export type Fs = typeof Fs
const x = (fs:Fs) => void
x(Memfs.fs.promises) //<-- type error
Hey, I'm looking for a single TypeScript type that is compatible between
node:fs/promises
andmemfs
. For example this does not work: