Sign up and Working username display

This commit is contained in:
2025-09-29 12:34:34 +02:00
parent f1f6ae2640
commit feb0804843
5 changed files with 45 additions and 15 deletions
+10 -6
View File
@@ -2,10 +2,14 @@ export type StringMap<T> = {
[key: string]: T;
};
export type NumberMap<T> = {
[key: number]: T;
};
export function narrow<T>(s: T, defd: T, ...allowed: T[]): T {
if (allowed.includes(s) || s == defd) {
return s;
} else {
return defd;
}
}
if (allowed.includes(s) || s == defd) {
return s;
} else {
return defd;
}
}