Skip to content

Commit

Permalink
Replace interfaces with new ones from the client-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
heisner-tillman committed Oct 17, 2023
1 parent b3603f5 commit b468708
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions client/src/stores/userStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,10 @@ import {
setCurrentThemeQuery,
} from "@/stores/users/queries";

type QuotaUsageResponse = components["schemas"]["UserQuotaUsage"];

interface User extends QuotaUsageResponse {
id: string;
email: string;
tags_used: string[];
isAnonymous: false;
}
type AnonymousUser = components["schemas"]["AnonUserModel"]
type User = components["schemas"]["DetailedUserModel"]

interface AnonymousUser {
isAnonymous: true;
}

interface Preferences {
theme: string;
Expand Down

0 comments on commit b468708

Please sign in to comment.