// Automatically generated from TypeScript type definitions provided by // DefinitelyTyped (https://github.com/DefinitelyTyped/DefinitelyTyped), // which is licensed under the MIT license; see file DefinitelyTyped-LICENSE // in parent directory. // Type definitions for Node.js 10.5.x // Project: http://nodejs.org/ // Definitions by: Microsoft TypeScript // DefinitelyTyped // Parambir Singh // Christian Vaagland Tellnes // Wilco Bakker // Nicolas Voigt // Chigozirim C. // Flarna // Mariusz Wiktorczyk // wwwy3y3 // Deividas Bakanas // Kelvin Jin // Alvis HT Tang // Sebastian Silbermann // Hannes Magnusson // Alberto Schiabel // Klaus Meinhardt // Huw // Nicolas Even // Bruno Scheufler // Mohsen Azimi // Hoàng Văn Khải // Alexander T. // Lishude // Andrew Makarov // Zane Hannan AU // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * @externs * @fileoverview Definitions for module "fs" */ var fs = {}; /** * @param {number} fd * @param {Buffer} buffer * @param {number} offset * @param {number} length * @param {number} position * @param {(function(NodeJS.ErrnoException, number, Buffer): void)=} callback * @return {void} */ fs.read = function(fd, buffer, offset, length, position, callback) {}; /** * @param {string} filename * @param {string} encoding * @param {(function(NodeJS.ErrnoException, string): void)} callback * @return {void} */ fs.readFile = function(filename, encoding, callback) {}; /** * @param {string} filename * @param {{encoding: string, flag: string}} options * @param {(function(NodeJS.ErrnoException, string): void)} callback * @return {void} */ fs.readFile = function(filename, options, callback) {}; /** * @param {string} filename * @param {{flag: string}} options * @param {(function(NodeJS.ErrnoException, Buffer): void)} callback * @return {void} */ fs.readFile = function(filename, options, callback) {}; /** * @param {string} filename * @param {(function(NodeJS.ErrnoException, Buffer): void)} callback * @return {void} */ fs.readFile = function(filename, callback) {};