Add documentation to functions
This commit is contained in:
parent
0a0d9b9802
commit
34e991f017
5 changed files with 18 additions and 7 deletions
|
@ -6,12 +6,12 @@ declare global {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**Splits a file name into its name and then its extension */
|
||||
export function extension(str: string){
|
||||
let file = str.split("/").pop();
|
||||
return [file.substr(0,file.lastIndexOf(".")),file.substr(file.lastIndexOf("."),file.length).toLowerCase()];
|
||||
}
|
||||
|
||||
/**Type for user data */
|
||||
export interface User {
|
||||
username: string;
|
||||
id?: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue