Skip to content
Snippets Groups Projects
Commit 3692c9eb authored by syuilo's avatar syuilo
Browse files

refactor

parent 89a532ee
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,10 @@ export async function getFileInfo(path: string): Promise<FileInfo> {
/**
* Detect MIME Type and extension
*/
export async function detectType(path: string) {
export async function detectType(path: string): Promise<{
mime: string;
ext: string | null;
}> {
// Check 0 byte
const fileSize = await getFileSize(path);
if (fileSize === 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment