Path: blob/main/third_party/closure-compiler/node-externs/url.js
6172 views
/*1* Copyright 2012 The Closure Compiler Authors.2*3* Licensed under the Apache License, Version 2.0 (the "License");4* you may not use this file except in compliance with the License.5* You may obtain a copy of the License at6*7* http://www.apache.org/licenses/LICENSE-2.08*9* Unless required by applicable law or agreed to in writing, software10* distributed under the License is distributed on an "AS IS" BASIS,11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12* See the License for the specific language governing permissions and13* limitations under the License.14*/1516/**17* @fileoverview Definitions for node's url module.18* @see http://nodejs.org/api/url.html19* @see https://github.com/joyent/node/blob/master/lib/url.js20* @externs21* @author Daniel Wirtz <[email protected]>22*/2324/**25BEGIN_NODE_INCLUDE26var url = require('url');27END_NODE_INCLUDE28*/2930/**31* @type {Object.<string,*>}32* @suppress {duplicate}33*/34var url = {};3536/**37* @typedef {{href: ?string, protocol: ?string, host: ?string, auth: ?string, hostname: ?string, port: ?string, pathname: ?string, search: ?string, path: ?string, query: ?string, hash: ?string}}38*/39url.URL;4041/**42* @param {string} urlStr43* @param {boolean=} parseQueryString44* @param {boolean=} slashesDenoteHost45* @return {url.URL}46* @nosideeffects47*/48url.parse = function(urlStr, parseQueryString, slashesDenoteHost) {};4950/**51* @param {url.URL} urlObj52* @return {string}53* @nosideeffects54*/55url.format = function(urlObj) {};5657/**58* @param {string} from59* @param {string} to60* @return {string}61* @nosideeffects62*/63url.resolve = function(from, to) {};6465/**66* @param {url.URL|string} url67* @return {string}68*/69url.fileURLToPath = function(url) {};7071/**72* @param {string} path73* @return {url.URL}74*/75url.pathToFileURL = function(path) {};767778