// 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 "url" */ var url = {}; /** * @interface */ url.Url = function() {}; /** * @type {string} */ url.Url.prototype.href; /** * @type {string} */ url.Url.prototype.protocol; /** * @type {string} */ url.Url.prototype.auth; /** * @type {string} */ url.Url.prototype.hostname; /** * @type {string} */ url.Url.prototype.port; /** * @type {string} */ url.Url.prototype.host; /** * @type {string} */ url.Url.prototype.pathname; /** * @type {string} */ url.Url.prototype.search; /** * @type {*} */ url.Url.prototype.query; /** * @type {boolean} */ url.Url.prototype.slashes; /** * @type {string} */ url.Url.prototype.hash; /** * @type {string} */ url.Url.prototype.path; /** * @param {string} urlStr * @param {boolean=} parseQueryString * @param {boolean=} slashesDenoteHost * @return {url.Url} */ url.parse = function(urlStr, parseQueryString, slashesDenoteHost) {}; /** * @param {url.Url} url * @return {string} */ url.format = function(url) {}; /** * @param {string} from * @param {string} to * @return {string} */ url.resolve = function(from, to) {}; module.exports.Url = url.Url; module.exports.parse = url.parse; module.exports.format = url.format; module.exports.resolve = url.resolve;