el.xwx.moe/types/global.ts
2023-03-10 22:55:33 +03:30

17 lines
291 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: string[];
collection: {
id: string | number;
isNew?: boolean;
};
}