Path: blob/main/third_party/closure-compiler/node-externs/punycode.js
6174 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 punycode module.18* @see http://nodejs.org/api/punycode.html19* @see https://github.com/joyent/node/blob/master/lib/punycode.js20* @externs21* @author Daniel Wirtz <[email protected]>22*/2324/**25BEGIN_NODE_INCLUDE26var punycode = require('punycode');27END_NODE_INCLUDE28*/2930/**31* @type {Object.<string,*>}32*/33var punycode = {};3435/**36* @param {string} string37* @return {string}38*/39punycode.decode = function(string) {};4041/**42* @param {string} string43* @return {string}44*/45punycode.encode = function(string) {};4647/**48* @param {string} domain49* @return {string}50*/51punycode.toUnicode = function(domain) {};5253/**54* @param {string} domain55* @return {string}56*/57punycode.toASCII = function(domain) {};5859/**60* @type {Object.<string,*>}61*/62punycode.ucs2 = {};6364/**65* @param {string} string66* @return {Array.<number>}67*/68punycode.ucs2.decode = function(string) {};6970/**71* @param {Array.<number>} codePoints72* @return {string}73*/74punycode.ucs2.encode = function(codePoints) {};7576/**77* @type {string}78*/79punycode.version;808182