Implement login

This commit is contained in:
Joseph Garrone
2021-03-02 22:48:36 +01:00
parent 6a93c6e894
commit e5e39d036d
9 changed files with 475 additions and 72 deletions

View File

@ -0,0 +1,10 @@
import "minimal-polyfills/Object.fromEntries";
export function allPropertiesValuesToUndefined<T extends Record<string, unknown>>(obj: T): Record<keyof T, undefined> {
return Object.fromEntries(
Object.entries(obj)
.map(([key]) => [key, undefined])
) as any;
}