Skip to content

Commit 7d52509

Browse files
committed
(typecript) update types
1 parent 7e581b4 commit 7d52509

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

types/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export interface Room {
1616

1717
export interface LastMessage {
1818
content: string
19-
sender_id: StringNumber
19+
senderId: StringNumber
2020
username?: string
2121
timestamp?: string
2222
saved?: boolean
@@ -34,24 +34,24 @@ export interface Users {
3434

3535
export interface UserStatus {
3636
state: 'online' | 'offline'
37-
last_changed: string
37+
lastChanged: string
3838
}
3939

4040
export type Messages = Message[]
4141

4242
export interface Message {
4343
_id: StringNumber
4444
content: string
45-
sender_id: StringNumber
45+
senderId: StringNumber
4646
date: string
4747
timestamp: string
4848
username?: string
4949
system?: boolean
5050
saved?: boolean
5151
distributed?: boolean
5252
seen?: boolean
53-
disable_actions?: boolean
54-
disable_reactions?: boolean
53+
disableActions?: boolean
54+
disableReactions?: boolean
5555
file?: MessageFile
5656
reactions: MessageReactions
5757
}

0 commit comments

Comments
 (0)