Fix cryptoHexEncodedHash256 type

This commit is contained in:
Junyoung Clare Jang
2018-08-29 18:33:01 -04:00
parent e0abaf4819
commit d5c12bc6dc
2 changed files with 12 additions and 1 deletions

View File

@@ -25,3 +25,14 @@ Evaporate.create({
console.log(awsS3ObjectKey + '!!!');
});
});
Evaporate.create({
bucket: 'test',
computeContentMd5: true,
cryptoMd5Method(data: ArrayBuffer) {
return '';
},
cryptoHexEncodedHash256(data: ArrayBuffer | string | null) {
return '';
},
});

View File

@@ -39,7 +39,7 @@ declare namespace Evaporate {
onlyRetryForSameFileName?: boolean;
timeUrl?: string;
cryptoMd5Method?: null | ((data: ArrayBuffer) => string);
cryptoHexEncodedHash256?: null | ((data: ArrayBuffer) => string);
cryptoHexEncodedHash256?: null | ((data: string | ArrayBuffer | null) => string);
aws_url?: string;
aws_key?: string;
awsRegion?: string;