forgejo-notifications-core/src/spec/notification.ts

21 lines
327 B
TypeScript

import Repository from "./repository";
type Subject = {
title: string;
url: URL;
latest_comment_url: string;
type: string; // Issue
state: string;
};
type Notification = {
id: number;
repository: Repository;
subject: Subject;
unread: boolean;
pinned: boolean;
url: URL;
};
export default Notification;