Hi! I'm trying to use kovenant after JS background...
# kovenant
y
Hi! I'm trying to use kovenant after JS background, and can't understand how to chain promisies one after one. For example i have two async method getMyFirstValue() : Promise<Int, Exception> and getMySecondValue(param: Int) : Promise<Boolean, Exception>, that get Int from first method and recieve boolean. Now i want to chain them and get something like: public fun getMyValues(): Promise<Boolean, Exception> { return getMyFirstValue() then { getMySecondValue(it); } }; But i recieve type mismatch error: Required: Promise<Boolean, Exception> Found: Promise<Promise<Boolean, Exception>>