So, I am trying to extend s3 client in aws-sdk to add some new functionalities to the existing functions, but i keep getting this error
Class constructor S3Client cannot be invoked without 'new'
when i try to instantiate an object from my class...
This is my code
import S3 from "aws-sdk/clients/s3";
class S3Client extends S3 {
constructor() {
super();
}
}
const s3 = new S3Client();
Anyone knows what i am doing wrong?
When I tried searching for the error all that came up was that I should change the target in my tsconfig.json to be ES6, I already tried that but still the same issue...