Is there a way to define type in Promise.resolve {} accumulator.
I'm using Typescript.
Getting this error: stackoverflow.com/questions/524238...
But, I was wondering how I can define type.
I found a similar answer here: dev.to/pedrohasantiago/typescript-...
I had to define a type and do it.
Promise.resolve({points:0,
areAllOrdersCompleted:false,
pendingorderId:[]
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Is there a way to define type in Promise.resolve {} accumulator.
I'm using Typescript.
Getting this error: stackoverflow.com/questions/524238...
But, I was wondering how I can define type.
I found a similar answer here: dev.to/pedrohasantiago/typescript-...
I had to define a type and do it.
Promise.resolve({points:0,
areAllOrdersCompleted:false,
pendingorderId:[]
}