Skip to content

Commit

Permalink
Unscuff types
Browse files Browse the repository at this point in the history
  • Loading branch information
jotjern committed Feb 20, 2024
1 parent 3513a42 commit 1b54fd0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/utils/getPresignedS3URL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const s3 = new AWS.S3({
apiVersion: '2006-03-01',
});

const createPresignedPost = (params: AWS.S3.PresignedPost.Params) => new Promise((resolve, reject) => {
const createPresignedPost = (params: AWS.S3.PresignedPost.Params): Promise<AWS.S3.PresignedPost> => new Promise((resolve, reject) => {
s3.createPresignedPost(params, function (err, data) {
if (err) {
reject(err);
Expand All @@ -37,8 +37,5 @@ export const getPresignedS3URL = async (name: string, contentType: string): Prom
["content-length-range", 0, 1024 * 1024 * 10],
],
Expires: 60,
}) as {
url: string;
fields: {[key: string]: string};
}
})
}

0 comments on commit 1b54fd0

Please sign in to comment.