You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly and most importantly, huge thanks for this package, it's awesome.
I tried to drop in the output from createFsFromVolume() instead of the native fs and I hit a snag. There's a minor typing mismatch.
Conversion of type 'IFs' to type 'FS' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
The types returned by 'promises.mkdir(...)' are incompatible between these types.
Type 'Promise<void>' is not comparable to type 'Promise<string>'.
Type 'void' is not comparable to type 'string'.ts(2352)
Looking into this a little, the node fs.mkdir and fs.promises.mkdir optionally return the path to the first directory created when the recursive: true option is set. While memfs.mkdir always returns void.
The text was updated successfully, but these errors were encountered:
Firstly and most importantly, huge thanks for this package, it's awesome.
I tried to drop in the output from
createFsFromVolume()
instead of the nativefs
and I hit a snag. There's a minor typing mismatch.Looking into this a little, the node fs.mkdir and fs.promises.mkdir optionally return the path to the first directory created when the
recursive: true
option is set. Whilememfs.mkdir
always returnsvoid
.The text was updated successfully, but these errors were encountered: