filesrocket-cloudinary
Version:
Filesrocket service that manage the files of the Cloudinary
15 lines (14 loc) • 586 B
TypeScript
export declare function convertToExpression<T>(payload: T, join: string): string;
/**
* Generate a random filename with or without an
* extension depending on the file type
*
* **Example**
* - history.pptx -> history-186dgs.pptx
* - image.jpg -> image-326gds
* - video.mp4 -> video-434gas
* - audio.jpg -> audio-149gds
*
* For more information visit: https://cloudinary.com/documentation/image_upload_api_reference#upload_optional_parameters
*/
export declare function CustomFilename(target: Object, key: string | symbol, descriptor: PropertyDescriptor): void;