fix sharex

This commit is contained in:
waveringana 2022-12-07 16:30:39 +00:00
parent 5290f4e960
commit 52b1aeea98
12 changed files with 80 additions and 49 deletions

18
app/types/lib.ts Normal file
View file

@ -0,0 +1,18 @@
declare global {
namespace Express {
interface User {
username: string;
id?: string;
}
}
}
export function extension(str: String){
let file = str.split("/").pop();
return [file.substr(0,file.lastIndexOf(".")),file.substr(file.lastIndexOf("."),file.length).toLowerCase()];
}
export interface User {
username: string;
id?: string;
}