mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
145 lines
2.8 KiB
JavaScript
145 lines
2.8 KiB
JavaScript
/*
|
|
* Copyright 2015 The Closure Compiler Authors
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Definitions for URL and URLSearchParams from the spec at
|
|
* https://url.spec.whatwg.org.
|
|
*
|
|
* @externs
|
|
* @author rdcronin@google.com (Devlin Cronin)
|
|
*/
|
|
|
|
/**
|
|
* @constructor
|
|
* @implements {Iterable<!Array<string>>}
|
|
* @param {(string|!URLSearchParams)=} init
|
|
*/
|
|
function URLSearchParams(init) {}
|
|
|
|
/**
|
|
* @param {string} name
|
|
* @param {string} value
|
|
* @return {undefined}
|
|
*/
|
|
URLSearchParams.prototype.append = function(name, value) {};
|
|
|
|
/**
|
|
* @param {string} name
|
|
* @return {undefined}
|
|
*/
|
|
URLSearchParams.prototype.delete = function(name) {};
|
|
|
|
/**
|
|
* @param {string} name
|
|
* @return {?string}
|
|
*/
|
|
URLSearchParams.prototype.get = function(name) {};
|
|
|
|
/**
|
|
* @param {string} name
|
|
* @return {!Array<string>}
|
|
*/
|
|
URLSearchParams.prototype.getAll = function(name) {};
|
|
|
|
/**
|
|
* @param {string} name
|
|
* @return {boolean}
|
|
*/
|
|
URLSearchParams.prototype.has = function(name) {};
|
|
|
|
/**
|
|
* @param {string} name
|
|
* @param {string} value
|
|
* @return {undefined}
|
|
*/
|
|
URLSearchParams.prototype.set = function(name, value) {};
|
|
|
|
/**
|
|
* @see https://url.spec.whatwg.org
|
|
* @constructor
|
|
* @param {string} url
|
|
* @param {(string|!URL)=} base
|
|
*/
|
|
function URL(url, base) {}
|
|
|
|
/** @type {string} */
|
|
URL.prototype.href;
|
|
|
|
/**
|
|
* @const
|
|
* @type {string}
|
|
*/
|
|
URL.prototype.origin;
|
|
|
|
/** @type {string} */
|
|
URL.prototype.protocol;
|
|
|
|
/** @type {string} */
|
|
URL.prototype.username;
|
|
|
|
/** @type {string} */
|
|
URL.prototype.password;
|
|
|
|
/** @type {string} */
|
|
URL.prototype.host;
|
|
|
|
/** @type {string} */
|
|
URL.prototype.hostname;
|
|
|
|
/** @type {string} */
|
|
URL.prototype.port;
|
|
|
|
/** @type {string} */
|
|
URL.prototype.pathname;
|
|
|
|
/** @type {string} */
|
|
URL.prototype.search;
|
|
|
|
/**
|
|
* @const
|
|
* @type {URLSearchParams}
|
|
*/
|
|
URL.prototype.searchParams;
|
|
|
|
/** @type {string} */
|
|
URL.prototype.hash;
|
|
|
|
/**
|
|
* @param {string} domain
|
|
* @return {string}
|
|
*/
|
|
URL.domainToASCII = function(domain) {};
|
|
|
|
/**
|
|
* @param {string} domain
|
|
* @return {string}
|
|
*/
|
|
URL.domainToUnicode = function(domain) {};
|
|
|
|
/**
|
|
* @see http://www.w3.org/TR/FileAPI/#dfn-createObjectURL
|
|
* @param {!File|!Blob|!MediaSource|!MediaStream} obj
|
|
* @return {string}
|
|
*/
|
|
URL.createObjectURL = function(obj) {};
|
|
|
|
/**
|
|
* @see http://www.w3.org/TR/FileAPI/#dfn-revokeObjectURL
|
|
* @param {string} url
|
|
* @return {undefined}
|
|
*/
|
|
URL.revokeObjectURL = function(url) {};
|