UNPKG

obrigado-react-admin-backend-utils

Version:
16 lines (15 loc) 491 B
import { FileHandler } from "../types/FileHandler"; import { GQLFileInput } from "../types/GQLFileInput"; export interface AwsFileHandlerConfig { awsKey: string; awsSecret: string; bucket: string; folder: string; region: string; } export declare class AwsS3FileHandler implements FileHandler { config: AwsFileHandlerConfig; constructor(conf: AwsFileHandlerConfig); deleteFile(path: string): Promise<void>; saveFile(data: GQLFileInput): Promise<string>; }