-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
24 lines (22 loc) · 832 Bytes
/
types.ts
File metadata and controls
24 lines (22 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export const COMMENT_TAGS = [
'humor', // punch lines, sarcasm, jokes
'warning', // hands-off notices or perilous caveats
'hack', // confessed shortcuts and ugly workarounds
'todo', // TODO/FIXME style follow-up reminders
'ascii-art', // formatting-as-message (e.g. code art/diagrams)
'dedication', // shout-outs, thanks, tributes
'meta', // commentary about coding or maintainers themselves
'pop-culture', // memes, lyrics, movies, pop references
'profane', // salty language or swears
'story', // anecdotal or narrative comments
] as const;
export type CommentTag = typeof COMMENT_TAGS[number];
export interface Comment {
id: number
author: string
date: string
source: string | null
popularity: number;
tags: CommentTag[]
content: string
}