Add VBArray externs

This commit is contained in:
Tom Payne
2014-02-17 17:37:07 +01:00
parent 524acc1901
commit 2a42c6f472

45
externs/vbarray.js Normal file
View File

@@ -0,0 +1,45 @@
/**
* @externs
* @see http://msdn.microsoft.com/en-us/library/y39d47w8(v=vs.94).aspx
*/
/**
* FIXME check argument type
* @constructor
* @param {VBArray|string} safeArray
*/
var VBArray = function(safeArray) {};
/**
* @return {number}
*/
VBArray.prototype.dimensions = function() {};
/**
* @param {...number} var_args
* @return {*}
*/
VBArray.prototype.getItem = function(var_args) {};
/**
* @param {number} dimension
* @return {*}
*/
VBArray.prototype.lbound = function(dimension) {};
/**
* @return {Array.<number>}
*/
VBArray.prototype.toArray = function() {};
/**
* @param {number} dimension
* @return {*}
*/
VBArray.prototype.ubound = function(dimension) {};