feat: added BusBoy/ass file metadata types

pull/243/head
Josh Moore 1 year ago
parent f49fe2e0b3
commit 46fabc223f

@ -1,3 +1,4 @@
import { BusBoyFile } from 'ass';
import { Request, Response } from 'express';
declare global {
@ -14,6 +15,8 @@ declare global {
*/
host: string
}
files: { [key: string]: BusBoyFile }
}
}
}

25
common/types.d.ts vendored

@ -28,6 +28,31 @@ declare module 'ass' {
gfySize: (val: any) => boolean;
maximumFileSize: (val: any) => boolean;
}
interface BusBoyFile {
uuid: string;
field: string;
file: string;
filename: string;
encoding: string;
mimetype: string;
truncated: boolean;
done: boolean;
}
interface AssFile {
fakeid: string;
id: NID;
mimetype: string;
filename: string;
save: {
local?: string;
s3?: any;
}
sha256: string;
timestamp: string;
uploader: NID;
}
}
//#region Dummy modules

Loading…
Cancel
Save