@lonelyplanet/dotcom-core
Version:
This package is meant to house some of our more common UI and shared libs across dotcom applications.
20 lines (16 loc) • 347 B
text/typescript
export interface IUploadResult {
key: string;
etag: string;
}
export interface IUploadOptions {
key: string;
body: string;
}
export interface IS3UploadOptions extends IUploadOptions {
bucket?: string;
acl?: string;
cacheControl?: string;
}
export interface IUploader {
upload(options: IUploadOptions): Promise<IUploadResult>;
}