Migrate old externs 3/x

This commit is contained in:
2026-06-14 07:28:00 +08:00
parent 77a1e5c22e
commit 7cdcd3b681
23 changed files with 251 additions and 187 deletions
+7 -4
View File
@@ -1,13 +1,16 @@
/** @constructor */
var BotanEvent = function (){};
/** @constructor
* @param {string} name
* @param {*} data
**/
var BotanEvent = function (name, data){};
/** @type {*} */
BotanEvent.data;
/** @type {Function} */
BotanEvent.propagate;
BotanEvent.propagate = function() {};
/** @type {Function} */
BotanEvent.stopPropagating;
BotanEvent.stopPropagating = function() {};
/** @type {Boolean} */
BotanEvent.propagating;
+4 -3
View File
@@ -1,4 +1,5 @@
/** @constructor
* @implements {EventTarget}
**/
/**
* @constructor
* @implements {EventTarget}
*/
var EventDispatcher = function() {};
+2 -2
View File
@@ -2,7 +2,7 @@
System.Debug = function (){}
/** @type {Function} */
System.Debug.Info;
System.Debug.prototype.Info = function(){};
/** @type {Function} */
System.Debug.Error;
System.Debug.prototype.Error = function(){};
+26 -22
View File
@@ -1,23 +1,27 @@
/** @type {Object} */
_AstConf_.SiteFile = {};
/** @type {string} */
_AstConf_.SiteFile.f_host;
/**
* @typedef {{
* f_host: string,
* path: !_AstConf_.SiteFile.Path,
* files: !Array<*>
* }}
*/
_AstConf_.SiteFile;
/** @type {Object} */
_AstConf_.SiteFile.path;
/** @type {string} */
_AstConf_.SiteFile.path.download;
/** @type {string} */
_AstConf_.SiteFile.path.info;
/** @type {Object} */
_AstConf_.SiteFile.path.image;
/** @type {string} */
_AstConf_.SiteFile.path.image.small;
/** @type {string} */
_AstConf_.SiteFile.path.image.medium;
/** @type {string} */
_AstConf_.SiteFile.path.image.large;
/** @type {string} */
_AstConf_.SiteFile.path.image.original;
/** @type {Array} */
_AstConf_.SiteFile.files;
/**
* @typedef {{
* download: string,
* info: string,
* image: !_AstConf_.SiteFile.Path.Image
* }}
*/
_AstConf_.SiteFile.Path;
/**
* @typedef {{
* small: string,
* medium: string,
* large: string,
* original: string
* }}
*/
_AstConf_.SiteFile.Path.Image;