el.xwx.moe/types/global.ts
2023-03-28 11:01:50 +03:30

18 lines
333 B
TypeScript

import { Collection, Link, Tag } from "@prisma/client";
export interface ExtendedLink extends Link {
tags: Tag[];
collection: Collection;
}
export interface NewLink {
name: string;
url: string;
tags: Tag[];
collection: {
id: number | undefined;
name: string | undefined;
ownerId: number | undefined;
};
}