Closed TouchSek closed 1 year ago
Please put async
keyword to the arrow function
But async
alone is not working and I don't want to disable the eslint for that kind.
I think your project has a rule that forbids the async keyword on functions that only have synchronous operations.
How about this way?
return Promise.resolve(addTransactionalDataSource(...))
Thanks, man it's working.
The problem is when we are using it with Nestjs, and using
dataSourceFactory
, it will resolve the wrong return type. since thedataSourceFactory
need to return asPromise<DataSource>
For a temporary solution I have to do like: