Migrate old externs 6/x

This commit is contained in:
2026-06-15 08:21:08 +08:00
parent a912d45b9a
commit 3bc6957677
13 changed files with 110 additions and 83 deletions
@@ -1,5 +1,12 @@
/** @constructor */
Astro.Mechanism.CharacterCloud = function() {};
/** @type {Function} */
Astro.Mechanism.CharacterCloud.create;
/**
* @param {Array<string>} ch
* @param {?string} char_class
* @param {number} size
* @param {Dandelion.Bounds} cloudRange
* @param {number=} charSize
* @return {HTMLElement}
*/
Astro.Mechanism.CharacterCloud.create = function(ch, char_class, size, cloudRange, charSize) {};
+2 -2
View File
@@ -21,9 +21,9 @@ System.Cycle.prototype.delay = function(callback, ms) {};
System.Cycle.prototype.perma = function(id, callback, intvl){};
/**
* @param {function(string): void} callback
* @param {string} id
*/
System.Cycle.prototype.permaRemove = function(callback) {};
System.Cycle.prototype.permaRemove = function(id) {};
/** @type {System.Tick} */
System.Cycle.prototype.TICK;
+1 -1
View File
@@ -2,6 +2,6 @@
* @constructor
* @extends {System.utils.IKey}
* @param {string} key
* @param {*} data
* @param {*=} data
*/
System.utils.DataKey = function(key, data) {};
+5 -2
View File
@@ -1,5 +1,8 @@
/** @constructor */
_3rdParty_.Recaptcha = function() {};
/** @type {Function} */
_3rdParty_.execute;
/**
* @param {string} apikey
* @param {Object<string, string>} action
**/
_3rdParty_.prototype.execute = function(apikey, action) {};
+29 -28
View File
@@ -1,29 +1,30 @@
/** @type {Object} */
_AstJson_.SiteFile = {};
/**
* @typedef {{
* status: boolean,
* message: string,
* file: !_AstJson_.SiteFile.File
* }}
*/
_AstJson_.SiteFile;
/** @type {Boolean} */
_AstJson_.SiteFile.status;
/** @type {string} */
_AstJson_.SiteFile.message;
/** @type {Object} */
_AstJson_.SiteFile.file;
/** @type {string} */
_AstJson_.SiteFile.file.date_created;
/** @type {string} */
_AstJson_.SiteFile.file.name;
/** @type {string} */
_AstJson_.SiteFile.file.id;
/** @type {string} */
_AstJson_.SiteFile.file.nickname;
/** @type {string} */
_AstJson_.SiteFile.file.type;
/** @type {string} */
_AstJson_.SiteFile.file.src_location;
/** @type {Object} */
_AstConf_.SiteFile.thumbes;
/** @type {string} */
_AstConf_.SiteFile.thumbs.small;
/** @type {string} */
_AstConf_.SiteFile.thumbs.medium;
/** @type {string} */
_AstConf_.SiteFile.thumbs.large;
/**
* @typedef {{
* date_created: string,
* name: string,
* id: string,
* nickname: string,
* type: string,
* src_location: string,
* thumbs: !_AstJson_.SiteFile.Thumbs
* }}
*/
_AstJson_.SiteFile.File;
/**
* @typedef {{
* small: string,
* medium: string,
* large: string
* }}
*/
_AstJson_.SiteFile.Thumbs;