obrigado-react-admin-backend-utils
Version:
Helper utilities for react-admin graphql backend.
16 lines (15 loc) • 491 B
TypeScript
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>;
}