Edoardo Luppi
06/24/2023, 5:35 PMJS_NAME_CLASH
errors? I really want the method to be overridden no matter what.Edoardo Luppi
06/24/2023, 5:36 PMEdoardo Luppi
06/24/2023, 5:37 PM@Suppress("JS_NAME_CLASH")
is enough. But is it supposed to work?turansky
06/25/2023, 6:36 AMEdoardo Luppi
06/25/2023, 9:27 AMawait
is not always great.
If instead I extend Promise, the IDE works nicely.turansky
06/25/2023, 9:31 AMEdoardo Luppi
06/25/2023, 9:38 AMthen
method (accepting a lambda as string => number
).
then(fn: ((s: string) => number)): MyClass
Then await on its instance:
const o = new MyClass();
const r = await o;
console.log(r);
Now use CTRL SHIFT P to get the quick type of r, it should be incorrectEdoardo Luppi
06/25/2023, 9:41 AM