Suggestion
Some stuff have become to strict... that it's becoming too annoying!
await new Promise(rs => {
setTimeout(() => rs(), 1000)
})
Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce
a 'resolve' that can be called without arguments
it's not only that. new ArrayBuffer() and new Uint8Array() is also something that requires an argument but it's perfectly fine to omit it to represent a 0 length buffer in the cases where you need a empty placeholder
🔍 Search Terms
promise resolve
✅ Viability Checklist
My suggestion meets these guidelines:
⭐ Suggestion
📃 Motivating Example
💻 Use Cases
Suggestion
Some stuff have become to strict... that it's becoming too annoying!
it's not only that.
new ArrayBuffer()andnew Uint8Array()is also something that requires an argument but it's perfectly fine to omit it to represent a 0 length buffer in the cases where you need a empty placeholder🔍 Search Terms
promise resolve
✅ Viability Checklist
My suggestion meets these guidelines:
⭐ Suggestion
📃 Motivating Example
💻 Use Cases