@premieroctet/next-admin
Version:
Next-Admin provides a customizable and turnkey admin dashboard for applications built with Next.js and powered by the Prisma ORM. It aims to simplify the development process by providing a turnkey admin system that can be easily integrated into your proje
20 lines • 552 B
TypeScript
/**
* Check if the url is a base64 url
*/
export declare function isBase64Url(url: string): boolean;
export declare function getFilenameAndExtensionFromUrl(url: string): {
fileName: undefined;
extension: undefined;
} | {
fileName: string;
extension: string;
};
/**
* Check if the url points to a file of type image
*/
export declare function isImageType(url: string): boolean;
/**
* Get the filename from a file url
*/
export declare function getFilenameFromUrl(url: string): string | undefined;
//# sourceMappingURL=file.d.ts.map