//type.d.ts(globalscope)declareglobal{interfaceArray{customFunc(args)=>any;}}//type.tsArray.prototype.customFunc=(...args)=>{return}PS:在此基础上补充泛型会让这个更完美

//type.d.ts(globalscope)declareglobal{interfaceArray{customFunc(args)=>any;}}//type.tsArray.prototype.customFunc=(...args)=>{return}PS:在此基础上补充泛型会让这个更完美