el.xwx.moe/types/global.ts

16 lines
252 B
TypeScript

import { Link, Tag } from "@prisma/client";
export interface LinkAndTags extends Link {
tags: Tag[];
}
export interface NewLink {
name: string;
url: string;
tags: string[];
collection: {
id: string | number;
isNew?: boolean;
};
}