/**
* @param {Buffer|string} file
* @param {string=} encoding - ignored if file contains a Buffer
* @param {function(Error, object): void} callback - Call this function (optionally with an
* error argument and data) when you are done processing the supplied chunk.
*/
transformStream._transform = function(file, encoding, callback) {
var error = null,
output = doSomethingWithTheFile(file);
callback(error, output);
};
TypeScript supports parsing this syntax natively, Babel-TS doesn't... as usual.
Example:
TypeScript supports parsing this syntax natively, Babel-TS doesn't... as usual.