Why here ReadStream and WriteStream cannot been identified by typescript, while function fs.createReadStream() can be identified?
If compile, errors below throw:
app1.ts(3,8): error TS2304: Cannot find name 'ReadStream'.
app1.ts(4,8): error TS2304: Cannot find name 'WriteStream'.
All the interfaces and functions are defined in node.d.ts file.
wsis declared but not assigned yet, its type must be explicitly declared, right? The syntax is right anyway, isn't? Maybe I have been affected by some other strong typed languages:)