1 | /**
|
2 | * `RawUser` represents a user fetched from the HN API as is.
|
3 | *
|
4 | * @see {@link https://github.com/HackerNews/API#users}
|
5 | */
|
6 | export interface RawUser {
|
7 | /** Unique, case-sensitive username */
|
8 | readonly id: string;
|
9 |
|
10 | /** Unix timestamp in seconds for when the user was created */
|
11 | readonly created: number;
|
12 |
|
13 | /** User's total karma */
|
14 | readonly karma: number;
|
15 |
|
16 | /** User's profile description; may contain HTML */
|
17 | readonly about?: string;
|
18 |
|
19 | /** List of IDs for the user's submissions */
|
20 | readonly submitted?: number[];
|
21 | }
|