fixes + improvements

This commit is contained in:
Daniel
2023-05-27 20:23:02 +03:30
parent 36778810c5
commit 632548e54a
4 changed files with 19 additions and 19 deletions
+7 -7
View File
@@ -5,7 +5,7 @@
import { Collection, Link, Tag, User } from "@prisma/client";
export type OptionalExcluding<T, TRequired extends keyof T> = Partial<T> &
type OptionalExcluding<T, TRequired extends keyof T> = Partial<T> &
Pick<T, TRequired>;
export interface LinkIncludingCollectionAndTags
@@ -33,6 +33,12 @@ export interface CollectionIncludingMembers
members: Member[];
}
export interface AccountSettings extends User {
profilePic: string | null;
oldPassword?: string;
newPassword?: string;
}
export type SearchSettings = {
query: string;
filter: {
@@ -43,9 +49,3 @@ export type SearchSettings = {
tags: boolean;
};
};
export interface AccountSettings extends User {
profilePic: string | null;
oldPassword?: string;
newPassword?: string;
}