The type definition is:
transactionAsync<T>(action: () => T): T
But it should be:
transactionAsync<T>(action: () => T): Promise<T>
By the way, thank you for the recent addition of async transactions. I know many times in open source, especially with less popular projects, these thoughts "Is anyone going to care?" are common. Well, this feature just got me out of a really tight spot in a mission-critical project.
The type definition is:
transactionAsync<T>(action: () => T): T
But it should be:
transactionAsync<T>(action: () => T): Promise<T>
By the way, thank you for the recent addition of async transactions. I know many times in open source, especially with less popular projects, these thoughts "Is anyone going to care?" are common. Well, this feature just got me out of a really tight spot in a mission-critical project.