修正类型提示

This commit is contained in:
shijian 2023-12-13 09:00:34 +08:00
parent f08becf03a
commit 2c5593c901
1 changed files with 2 additions and 20 deletions

View File

@ -31277,29 +31277,11 @@ new Promise(resolve=>{
this.step=0;
this.finished=false;
/**
* @type {GameEvent[]}
* @type {(Promise<GameEvent> & GameEvent & GameEventPromise)[]}
*/
this.next=[];
// Object.defineProperty(this.next,'remove',{
// enumerable:false,
// value:function(){
// for(const item of arguments){
// let pos=-1;
// if (typeof item=='number'&&isNaN(item)){
// pos=this.findIndex(v=>isNaN(v))
// }else if(item instanceof lib.element.GameEventPromise){
// pos=this.indexOf(item.toEvent());
// }else{
// pos=this.indexOf(item);
// }
// if(pos==-1) continue;
// this.splice(pos,1);
// }
// return this;
// }
// });
/**
* @type {GameEvent[]}
* @type {(Promise<GameEvent> & GameEvent & GameEventPromise)[]}
*/
this.after=[];
this.custom={