Path: blob/main/third_party/closure-compiler/node-externs/core.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 core.18* @see http://nodejs.org/api/globals.html19* @see http://nodejs.org/api/modules.html20* @externs21* @author Daniel Wirtz <[email protected]>22*/2324/**25* @param name26* @return {*}27*/28var require = function(name) {}2930/**31* @return {string}32*/33require.resolve = function() {};3435/**36* @type {Object.<string,*>}37*/38require.cache;3940/**41* @type {Array}42*/43require.extensions;4445/**46* @type {Object}47*/48require.main;4950/**51* @type {string}52*/53var __filename;5455/**56* @type {string}57*/58var __dirname;5960/**61* @type {Object}62*/63var module = {};6465/**66* @type {*}67*/68var exports;6970/**71* @type {Object.<string,*>}72*/73module.exports;7475/**76* @type {function(string)}77*/78module.require;7980/**81* @type {string}82*/83module.filename;8485/**86* @type {boolean}87*/88module.loaded;8990/**91* @type {*}92*/93module.parent;9495/**96* @type {Array}97*/98module.children;99100/**101* @type {Object.<string,*>}102*/103var global = {};104105106