File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
import Vue , { PluginFunction } from 'vue'
2
2
3
- export function register ( ) : void ;
3
+ export function register ( ) : void
4
4
5
5
export type StringNumber = string | number
6
6
@@ -10,7 +10,7 @@ export interface UserStatus {
10
10
}
11
11
12
12
export interface RoomUser {
13
- _id : String
13
+ _id : string
14
14
username : string
15
15
avatar : string
16
16
status : UserStatus
@@ -31,7 +31,7 @@ export interface MessageFile {
31
31
32
32
export interface LastMessage {
33
33
content : string
34
- senderId : String
34
+ senderId : string
35
35
username ?: string
36
36
timestamp ?: string
37
37
saved ?: boolean
@@ -42,14 +42,14 @@ export interface LastMessage {
42
42
}
43
43
44
44
export interface Room {
45
- roomId : String
45
+ roomId : string
46
46
roomName : string
47
- avatar : String
47
+ avatar : string
48
48
users : RoomUsers
49
- unreadCount ?: Number
49
+ unreadCount ?: number
50
50
index ?: StringNumber | Date
51
51
lastMessage ?: LastMessage
52
- typingUsers ?: String [ ]
52
+ typingUsers ?: string [ ]
53
53
}
54
54
55
55
export type Rooms = Room [ ]
@@ -62,7 +62,7 @@ export interface Message {
62
62
_id : StringNumber
63
63
indexId ?: StringNumber
64
64
content : string
65
- senderId : String
65
+ senderId : string
66
66
username ?: string
67
67
avatar ?: string
68
68
date : string
@@ -134,12 +134,12 @@ export interface LinkOptions {
134
134
135
135
export interface Props {
136
136
height ?: string
137
- 'current-user-id' : String
137
+ 'current-user-id' : string
138
138
rooms : Rooms
139
139
'rooms-order' ?: 'desc' | 'asc'
140
140
'loading-rooms' ?: boolean
141
141
'rooms-loaded' ?: boolean
142
- 'room-id' ?: String
142
+ 'room-id' ?: string
143
143
'load-first-room' ?: boolean
144
144
'rooms-list-opened' ?: boolean
145
145
messages : Messages
You can’t perform that action at this time.
0 commit comments