fix sharex
This commit is contained in:
parent
5290f4e960
commit
52b1aeea98
12 changed files with 80 additions and 49 deletions
18
app/types/lib.ts
Normal file
18
app/types/lib.ts
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue