Skip to content

Commit 7bddd83

Browse files
committed
(types) fix string typo
1 parent 73bfbd0 commit 7bddd83

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

types/index.d.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Vue, { PluginFunction } from 'vue'
22

3-
export function register(): void;
3+
export function register(): void
44

55
export type StringNumber = string | number
66

@@ -10,7 +10,7 @@ export interface UserStatus {
1010
}
1111

1212
export 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

3232
export 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

4444
export 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

5555
export 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

135135
export 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

0 commit comments

Comments
 (0)