Today compiler.inputFileSystem.readdir doesn't include the type information for passing {withFileTypes: boolean} options parameter. This is useful if you are leveraging inputFileSystem for and you want to read Dirint objects instead of string | buffer types.
This is low hanging fruit that anyone could contribute to. Location to code: https://github.com/webpack/webpack/blob/main/lib/util/fs.js#L113-L205