3 ms·
A function returning a boolean cannot return a Promise. As simple as that!
by pif 11mo ago
A function returning a boolean cannot return a Promise. As simple as that!
- tantalor 11mo agoSure but if the framework also changes the signature of the function, there's nothing compiler can do. Unless you want it to catch `if(promise)`