// 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 "domain" */ var domain = {}; var events = require("events"); /** * @constructor * @extends {events.EventEmitter} * @implements {NodeJS.Domain} */ domain.Domain; /** * @param {Function} fn * @return {void} */ domain.Domain.prototype.run = function(fn) {}; /** * @param {events.EventEmitter} emitter * @return {void} */ domain.Domain.prototype.add = function(emitter) {}; /** * @param {events.EventEmitter} emitter * @return {void} */ domain.Domain.prototype.remove = function(emitter) {}; /** * @param {(function(Error, *): *)} cb * @return {*} */ domain.Domain.prototype.bind = function(cb) {}; /** * @param {(function(*): *)} cb * @return {*} */ domain.Domain.prototype.intercept = function(cb) {}; /** * @return {void} */ domain.Domain.prototype.dispose = function() {}; /** * @type {Array<*>} */ domain.Domain.prototype.members; /** * @return {void} */ domain.Domain.prototype.enter = function() {}; /** * @return {void} */ domain.Domain.prototype.exit = function() {}; /** * @return {domain.Domain} */ domain.create = function() {}; module.exports.Domain = domain.Domain; module.exports.create = domain.create; /** * @type {domain.Domain} */ domain.active; module.exports.active = domain.active;