Path: blob/main/third_party/closure-compiler/node-externs/path.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 path module.18* @see http://nodejs.org/api/path.html19* @externs20* @author Daniel Wirtz <[email protected]>21*/2223/**24BEGIN_NODE_INCLUDE25var path = require('path');26END_NODE_INCLUDE27*/2829/**30* @type {Object.<string,*>}31*/32var path = {};3334/**35* @param {string} p36* @return {string}37* @nosideeffects38*/39path.normalize = function(p) {};4041/**42* @param {...string} var_args43* @return {string}44* @nosideeffects45*/46path.join = function(var_args) {};4748/**49* @param {string} from50* @param {string=} to51* @return {string}52* @nosideeffects53*/54path.resolve = function(from, to) {};5556/**57* @param {string} from58* @param {string} to59* @return {string}60* @nosideeffects61*/62path.relative = function(from, to) {};6364/**65* @param {string} p66* @return {string}67* @nosideeffects68*/69path.dirname = function(p) {};7071/**72* @param {string} p73* @param {string=} ext74* @return {string}75* @nosideeffects76*/77path.basename = function(p, ext) {};7879/**80* @param {string} p81* @return {string}82* @nosideeffects83*/84path.extname = function(p) {};8586/**87* @type {string}88*/89path.sep;909192