Tuesday, 4 April 2017

using Node modules with Flow

Flow has builtin support for standard Node modules such as "fs". What is the proper way to use those? I tried this:

const fs: fs = require('fs');
fs.someUnknownMethod();

I expected Flow to flag that last line, but it didn't.



via Mark Volkmann

No comments:

Post a Comment