-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgossip.d.ts
More file actions
38 lines (33 loc) · 733 Bytes
/
gossip.d.ts
File metadata and controls
38 lines (33 loc) · 733 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
25
26
27
28
29
30
31
32
33
34
35
36
37
declare module 'gossip' {
export interface User {
login: string
nick_name: string
avatar_url: string
bio: string
}
export interface Post {
id: number
title: string
created_at: string
updated_at: string
content: string
author: string
reactions: {
"+1": number
"-1": number
"confused": number
"eyes": number
"heart": number
"hooray": number
"laugh": number
"rocket": number
"total_count": number
},
labels: string[]
}
export type Theme = 'light' | 'dark'
import {NextPage} from "next"
export type NextPageWithLayout<T = {}> = NextPage<T> & {
getLayout?: (page: React.ReactElement) => React.ReactNode
}
}