Jontyy
Jontyy
```typescript const getRes = (url: string) => { return new Promise(resolve => { const random = Math.random() * 100; setTimeout(() => { resolve({url, random}); }, random); }); }; const multiRequest...
```typescript class myString extends String { myIndexOf(str: string) { const O = Object(this); const reg = new RegExp(str, 'g'); const res = reg.exec(O); if (res) { return res.index; } return...
but, when i use typescript, it will always told me Property 'length' does not exist on type 'number'.and i want to know how to deal with it
I encountered this problem while maintaining an old project, what I did was to upgrade @babel/core to the latest version, which is currently 7.25.2