forked from Botanical/BotanJS
Migrate old externs 4/x
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/** @constructor */
|
||||
Astro.Bootstrap = function() {};
|
||||
|
||||
/** @type {Function} */
|
||||
Astro.Bootstrap.init;
|
||||
/** @type {function(): void} */
|
||||
Astro.Bootstrap.prototype.init;
|
||||
|
||||
/** @type {Function} */
|
||||
Astro.Bootstrap.regInit;
|
||||
/** @param {function(): void} callback */
|
||||
Astro.Bootstrap.prototype.regInit = function(callback) {};
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
/** @constructor */
|
||||
Astro.Mechanism.Parallax = function() {};
|
||||
|
||||
/** @type {Function} */
|
||||
Astro.Mechanism.Parallax.cssSlide;
|
||||
/** @type {Function} */
|
||||
Astro.Mechanism.Parallax.verticalSlideTo;
|
||||
/** @type {Function} */
|
||||
Astro.Mechanism.Parallax.attach;
|
||||
/**
|
||||
* @param {HTMLElement} el
|
||||
* @param {number} index
|
||||
* @param {Dandelion.Bounds} dist
|
||||
*/
|
||||
Astro.Mechanism.Parallax.prototype.cssSlide = function(el, index, dist) {};
|
||||
|
||||
/** @param {number} index */
|
||||
Astro.Mechanism.Parallax.prototype.verticalSlideTo = function(index) {};
|
||||
|
||||
/**
|
||||
* @param {EventTarget} target
|
||||
* @param {Dandelion.Window} wsupp
|
||||
* @param {number} m_opacity
|
||||
*/
|
||||
Astro.Mechanism.Parallax.prototype.attach = function(target, wsupp, m_opacity) {};
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/** @constructor
|
||||
* @param {string} id
|
||||
* @param {*} title
|
||||
* @param {*} content
|
||||
* @param {string} align
|
||||
*/
|
||||
Components.DockPanel = function(id, title, content, align) {};
|
||||
|
||||
/** @type {HTMLElement} */
|
||||
Components.DockPanel.prototype.stage;
|
||||
@@ -0,0 +1,15 @@
|
||||
/** @constructor */
|
||||
Dandelion.Window = function() {};
|
||||
|
||||
/** @type {number} */
|
||||
Dandelion.Window.prototype.scrollTop;
|
||||
/** @type {number} */
|
||||
Dandelion.Window.prototype.scrollLeft;
|
||||
/** @type {number} */
|
||||
Dandelion.Window.prototype.scrollWidth;
|
||||
/** @type {number} */
|
||||
Dandelion.Window.prototype.scrollHeight;
|
||||
/** @type {number} */
|
||||
Dandelion.Window.prototype.clientWidth;
|
||||
/** @type {number} */
|
||||
Dandelion.Window.prototype.clientHeight;
|
||||
@@ -36,3 +36,13 @@ Dandelion.gname = function() {};
|
||||
|
||||
/** @type {Function} */
|
||||
Dandelion.glass = function() {};
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* lowerLimit: (number|undefined),
|
||||
* upperLimit: (number|undefined),
|
||||
* leftLimit: (number|undefined),
|
||||
* rightLimit: (number|undefined)
|
||||
* }}
|
||||
*/
|
||||
Dandelion.Bounds;
|
||||
|
||||
@@ -2,22 +2,22 @@
|
||||
Libraries.SyntaxHighlighter = function() {};
|
||||
|
||||
/** @type {function(...?): ?} */
|
||||
Libraries.SyntaxHighlighter.all;
|
||||
Libraries.SyntaxHighlighter.prototype.all = function() {};
|
||||
|
||||
/** @type {!Object<string, *>} */
|
||||
Libraries.SyntaxHighlighter.defaults;
|
||||
Libraries.SyntaxHighlighter.prototype.defaults;
|
||||
|
||||
/** @type {function(...?): ?} */
|
||||
Libraries.SyntaxHighlighter.highlight;
|
||||
Libraries.SyntaxHighlighter.prototype.highlight = function(){};
|
||||
|
||||
/** @type {!Object<string, *>} */
|
||||
Libraries.SyntaxHighlighter.Highlighter;
|
||||
Libraries.SyntaxHighlighter.prototype.Highlighter;
|
||||
|
||||
/** @type {!Object<string, *>} */
|
||||
Libraries.SyntaxHighlighter.brushes;
|
||||
Libraries.SyntaxHighlighter.prototype.brushes;
|
||||
|
||||
/** @type {!Object<string, !RegExp>} */
|
||||
Libraries.SyntaxHighlighter.regexLib;
|
||||
Libraries.SyntaxHighlighter.prototype.regexLib;
|
||||
|
||||
|
||||
/** @const */
|
||||
|
||||
@@ -1,17 +1,29 @@
|
||||
/** @constructor */
|
||||
System.Cycle = function (){}
|
||||
|
||||
/** @type {Function} */
|
||||
System.Cycle.next;
|
||||
/**
|
||||
* @param {function(): void} callback
|
||||
*/
|
||||
System.Cycle.prototype.next = function(callback) {};
|
||||
|
||||
/** @type {Function} */
|
||||
System.Cycle.delay;
|
||||
/**
|
||||
* @param {function(): void} callback
|
||||
* @param {number} ms
|
||||
*/
|
||||
System.Cycle.prototype.delay = function(callback, ms) {};
|
||||
|
||||
/** @type {Function} */
|
||||
System.Cycle.perma;
|
||||
/**
|
||||
* @param {string} id
|
||||
* @param {function(): void} callback
|
||||
* @param {number} intvl
|
||||
* @return {boolean}
|
||||
*/
|
||||
System.Cycle.prototype.perma = function(id, callback, intvl){};
|
||||
|
||||
/** @type {Function} */
|
||||
System.Cycle.permaRemove;
|
||||
/**
|
||||
* @param {function(string): void} callback
|
||||
*/
|
||||
System.Cycle.prototype.permaRemove = function(callback) {};
|
||||
|
||||
/** @type {System.Tick} */
|
||||
System.Cycle.TICK;
|
||||
System.Cycle.prototype.TICK;
|
||||
|
||||
@@ -1,16 +1,32 @@
|
||||
/** @constructor */
|
||||
System.Log = function (){}
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
System.Log = function() {};
|
||||
|
||||
/** @type {Function} */
|
||||
System.Log.writeLine;
|
||||
/** @type {Function} */
|
||||
System.Log.registerHandler;
|
||||
/** @type {Function} */
|
||||
System.Log.removeHandler;
|
||||
/**
|
||||
* @param {*} mesg
|
||||
* @param {number=} type
|
||||
* @return {void}
|
||||
*/
|
||||
System.Log.prototype.writeLine = function(mesg, type) {};
|
||||
|
||||
/** @const */
|
||||
System.Log.ERROR;
|
||||
/** @const */
|
||||
System.Log.INFO;
|
||||
/** @const */
|
||||
System.Log.SYSTEM;
|
||||
/**
|
||||
* @param {function(*, number): void} func
|
||||
* @return {number}
|
||||
*/
|
||||
System.Log.prototype.registerHandler = function(func) {};
|
||||
|
||||
/**
|
||||
* @param {number} index
|
||||
* @return {void}
|
||||
*/
|
||||
System.Log.prototype.removeHandler = function(index) {};
|
||||
|
||||
/** @const {number} */
|
||||
System.Log.prototype.ERROR;
|
||||
|
||||
/** @const {number} */
|
||||
System.Log.prototype.INFO;
|
||||
|
||||
/** @const {number} */
|
||||
System.Log.prototype.SYSTEM;
|
||||
|
||||
@@ -11,3 +11,6 @@ System.Tick.prototype.stop;
|
||||
|
||||
/** @type {Array} */
|
||||
System.Tick.prototype.steppers;
|
||||
|
||||
/** @type {number} */
|
||||
System.Tick.prototype.count;
|
||||
|
||||
Reference in New Issue
Block a user