Skip to content

Version 0.5.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 16 Sep 19:41
  • 70a25d5 feat: support multiple @types/node versions at once

I still have to export everything, but if your @types/node version matches your actual node version, this package should export type undefined for that export. I already did that at runtime (so that this package does not crash). This requires me to write .d.ts files manually, but I think that it is worth it 🤓

Also, this means that proper way to check if method (eg. cp added in 16.7.0) is available is to do if (fs.cp), not if ('cp' in fs), because the second is always true... It also means that you can do import { fs } from '@isbl/fs' even if you are on older nodejs version.