summaryrefslogtreecommitdiffstats
path: root/ui/src/interfaces.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r--ui/src/interfaces.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts
new file mode 100644
index 00000000..c1550cc1
--- /dev/null
+++ b/ui/src/interfaces.ts
@@ -0,0 +1,14 @@
+export interface LoginForm {
+ username: string;
+ password: string;
+}
+export interface RegisterForm {
+ username: string;
+ email?: string;
+ password: string;
+ password_verify: string;
+}
+
+export enum UserOperation {
+ Login, Register
+}