ethers.js/misc/admin/lib/cmds/publish.d.ts

16 lines
427 B
TypeScript
Raw Normal View History

2020-10-03 09:20:50 +03:00
/// <reference types="node" />
import AWS from 'aws-sdk';
declare type PutInfo = {
ACL: "public-read";
Body: string | Buffer;
Bucket: string;
ContentType: string;
Key: string;
};
export declare function putObject(s3: AWS.S3, info: PutInfo): Promise<{
name: string;
hash: string;
}>;
export declare function invalidate(cloudfront: AWS.CloudFront, distributionId: string): Promise<string>;
export {};