Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/third_party/closure-compiler/node-externs/querystring.js
6171 views
1
/*
2
* Copyright 2012 The Closure Compiler Authors.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
/**
18
* @fileoverview Definitions for node's querystring module.
19
* @see http://nodejs.org/api/querystring.html
20
* @see https://github.com/joyent/node/blob/master/lib/querystring.js
21
* @externs
22
* @author Daniel Wirtz <[email protected]>
23
*/
24
25
/**
26
BEGIN_NODE_INCLUDE
27
var querystring = require('querystring');
28
END_NODE_INCLUDE
29
*/
30
31
/**
32
* @type {Object.<string,*>}
33
*/
34
var querystring = {};
35
36
/**
37
* @param {Object.<string,*>} obj
38
* @param {string=} sep
39
* @param {string=} eq
40
* @return {string}
41
* @nosideeffects
42
*/
43
querystring.stringify = function(obj, sep, eq) {};
44
45
/**
46
* @param {string} str
47
* @param {string=} sep
48
* @param {string=} eq
49
* @param {*=} options
50
* @nosideeffects
51
*/
52
querystring.parse = function(str, sep, eq, options) {};
53
54
/**
55
* @param {string} str
56
* @return {string}
57
*/
58
querystring.escape = function(str) {};
59
60
/**
61
* @param {string} str
62
* @return {string}
63
*/
64
querystring.unescape = function(str) {};
65
66
/**
67
* @param {nodeBuffer.Buffer} s
68
* @param {boolean} decodeSpaces
69
*/
70
querystring.unescapeBuffer = function(s, decodeSpaces) {};
71
72