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 11import Vue , { PluginFunction } from 'vue'
22
3- export function register ( ) : void ;
3+ export function register ( ) : void
44
55export type StringNumber = string | number
66
@@ -10,7 +10,7 @@ export interface UserStatus {
1010}
1111
1212export interface RoomUser {
13- _id : String
13+ _id : string
1414 username : string
1515 avatar : string
1616 status : UserStatus
@@ -31,7 +31,7 @@ export interface MessageFile {
3131
3232export interface LastMessage {
3333 content : string
34- senderId : String
34+ senderId : string
3535 username ?: string
3636 timestamp ?: string
3737 saved ?: boolean
@@ -42,14 +42,14 @@ export interface LastMessage {
4242}
4343
4444export interface Room {
45- roomId : String
45+ roomId : string
4646 roomName : string
47- avatar : String
47+ avatar : string
4848 users : RoomUsers
49- unreadCount ?: Number
49+ unreadCount ?: number
5050 index ?: StringNumber | Date
5151 lastMessage ?: LastMessage
52- typingUsers ?: String [ ]
52+ typingUsers ?: string [ ]
5353}
5454
5555export type Rooms = Room [ ]
@@ -62,7 +62,7 @@ export interface Message {
6262 _id : StringNumber
6363 indexId ?: StringNumber
6464 content : string
65- senderId : String
65+ senderId : string
6666 username ?: string
6767 avatar ?: string
6868 date : string
@@ -134,12 +134,12 @@ export interface LinkOptions {
134134
135135export interface Props {
136136 height ?: string
137- 'current-user-id' : String
137+ 'current-user-id' : string
138138 rooms : Rooms
139139 'rooms-order' ?: 'desc' | 'asc'
140140 'loading-rooms' ?: boolean
141141 'rooms-loaded' ?: boolean
142- 'room-id' ?: String
142+ 'room-id' ?: string
143143 'load-first-room' ?: boolean
144144 'rooms-list-opened' ?: boolean
145145 messages : Messages
You can’t perform that action at this time.
0 commit comments