UNPKG

@clerk/shared

Version:

Internal package utils used by the Clerk SDKs

20 lines 668 B
//#region src/file.d.ts /** * Read an expected JSON type File. * * Probably paired with: * <input type='file' accept='application/JSON' ... /> */ declare function readJSONFile(file: File): Promise<unknown>; declare const MimeTypeToExtensionMap: Readonly<{ readonly 'image/png': "png"; readonly 'image/jpeg': "jpg"; readonly 'image/gif': "gif"; readonly 'image/webp': "webp"; readonly 'image/x-icon': "ico"; readonly 'image/vnd.microsoft.icon': "ico"; }>; type SupportedMimeType = keyof typeof MimeTypeToExtensionMap; declare const extension: (mimeType: SupportedMimeType) => string; //#endregion export { SupportedMimeType, extension, readJSONFile };