hippofish/src/types.ts

12 lines
522 B
TypeScript
Raw Normal View History

2020-05-26 07:33:55 +02:00
export const notificationTypes = ['follow', 'mention', 'reply', 'renote', 'quote', 'reaction', 'pollVote', 'receiveFollowRequest', 'followRequestAccepted', 'groupInvited', 'app'] as const;
export const noteVisibilities = ['public', 'home', 'followers', 'specified'] as const;
export const mutedNoteReasons = ['word', 'manual', 'spam', 'other'] as const;
2021-02-10 14:19:09 +01:00
export type pushNotificationData = {
2021-02-10 14:30:02 +01:00
type: 'notification' | 'unreadMessagingMessage' | 'readNotifications' | 'readAllNotifications',
body: any,
userId: string
2021-02-10 14:19:09 +01:00
};