Skip to content

Commit

Permalink
fix: revert interface modification
Browse files Browse the repository at this point in the history
  • Loading branch information
andromidasj committed Oct 6, 2023
1 parent b7113d3 commit 918618f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/hooks/useUser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { UserType } from '@server/constants/user';
import type { UserSettingsGeneralResponse } from '@server/interfaces/api/userSettingsInterfaces';
import type { PermissionCheckOptions } from '@server/lib/permissions';
import { hasPermission, Permission } from '@server/lib/permissions';
import type { NotificationAgentKey } from '@server/lib/settings';
Expand All @@ -26,14 +25,15 @@ export interface User {

type NotificationAgentTypes = Record<NotificationAgentKey, number>;

type UserSettings = Pick<
UserSettingsGeneralResponse,
'discordId' | 'region' | 'originalLanguage' | 'locale' | 'hideTags'
> & {
export interface UserSettings {
discordId?: string;
region?: string;
originalLanguage?: string;
locale?: string;
notificationTypes: Partial<NotificationAgentTypes>;
watchlistSyncMovies?: boolean;
watchlistSyncTv?: boolean;
};
}

interface UserHookResponse {
user?: User;
Expand Down

0 comments on commit 918618f

Please sign in to comment.