linx-simulator2/node_modules/bytebuffer/externs/minimal-env.js

53 lines
812 B
JavaScript
Raw Normal View History

2019-09-18 08:11:16 +00:00
/**
* @param {string} moduleName
* @returns {?}
*/
function require(moduleName) {};
/**
* @param {string} name
* @param {Array.<string>} deps
* @param {function(...[*])} f
*/
function define(name, deps, f) {};
/**
* @param {number} size
* @constructor
* @extends Array
*/
function Buffer(size) {};
/**
* @param {*} buf
* @return {boolean}
*/
Buffer.isBuffer = function(buf) {};
/**
* @type {Object.<string,*>}
*/
var console = {};
/**
* @param {string} s
*/
console.log = function(s) {};
/**
* @type {*}
*/
var module = {};
/**
* @param {...*} var_args
* @returns {string}
*/
String.fromCodePoint = function(var_args) {};
/**
* @param {number} offset
* @returns {number}
*/
String.prototype.codePointAt = function(offset) {};